<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Episode V: PrintJob Strikes Back</title>
	<atom:link href="http://aralbalkan.com/252/feed" rel="self" type="application/rss+xml" />
	<link>http://aralbalkan.com/252</link>
	<description>Passionate geekisms.</description>
	<lastBuildDate>Fri, 19 Mar 2010 19:46:31 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tim Harris</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-109618</link>
		<dc:creator>Tim Harris</dc:creator>
		<pubDate>Fri, 01 Feb 2008 23:39:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-109618</guid>
		<description>All.

I have stumbled upon this posting of the so called PrintJob and have to say I am kind of worried.  what you guys are saying are true workarounds, however, from my perspective they are all HACKS.

One thing is clear.  Adobe is using their monopoly power to prevent us from being able to print, and is forcing us to buy flashpaper which I will not do.  So, this weekend I am writing a letter to the attorney general on this issue.  How many of us flash developers would be interested in a class action lawsuit ?  This is fucked up. Email me at thartist026@hotmail.com</description>
		<content:encoded><![CDATA[<p>All.</p>
<p>I have stumbled upon this posting of the so called PrintJob and have to say I am kind of worried.  what you guys are saying are true workarounds, however, from my perspective they are all HACKS.</p>
<p>One thing is clear.  Adobe is using their monopoly power to prevent us from being able to print, and is forcing us to buy flashpaper which I will not do.  So, this weekend I am writing a letter to the attorney general on this issue.  How many of us flash developers would be interested in a class action lawsuit ?  This is fucked up. Email me at <a href="mailto:thartist026@hotmail.com">thartist026@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Pang</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-78448</link>
		<dc:creator>Richard Pang</dc:creator>
		<pubDate>Mon, 22 Oct 2007 11:40:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-78448</guid>
		<description>Hi there,

I&#039;m having issues with using printjob using addpages. I&#039;ve tried creating the pages using createEmptyMovieClip and drawing a bitmap onto it using a repeat loop first then using setInterval to start the printjob and addpages afterwards but I keep getting pages printing black. 

The funny thing is that on a Mac, if you use print preview, it works but if you print direct, I get these black pages printed.

Any suggestions are greatly welcome.

Thanks / RP</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I&#8217;m having issues with using printjob using addpages. I&#8217;ve tried creating the pages using createEmptyMovieClip and drawing a bitmap onto it using a repeat loop first then using setInterval to start the printjob and addpages afterwards but I keep getting pages printing black. </p>
<p>The funny thing is that on a Mac, if you use print preview, it works but if you print direct, I get these black pages printed.</p>
<p>Any suggestions are greatly welcome.</p>
<p>Thanks / RP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aral</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-4761</link>
		<dc:creator>aral</dc:creator>
		<pubDate>Fri, 29 Sep 2006 10:51:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-4761</guid>
		<description>Hey Mark, do let us know how you get on. :)</description>
		<content:encoded><![CDATA[<p>Hey Mark, do let us know how you get on. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-4711</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 28 Sep 2006 19:20:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-4711</guid>
		<description>Hi,

I was thinking one work around might be to create an autosized Textfield the entire length of the text off stage.  Then print the page rects until you have reached the height of that clip...

	
			var printClip = mc.attachMovie(&quot;com.magic.views.PrintClip&quot;, &quot;printClip&quot; pageCount, pageCount);
			printClip.init(p_text);
			var yOffSet:Number = 0;
			
			//printClip.scrollRect = _scrollMask;
		var my_pj:PrintJob = new PrintJob();
    
		if (my_pj.start())
		{

				while(yOffSet  0){
				my_pj.send();
			}
			delete my_pj;
			
		}

I&#039;m still tweaking with it to make sure text doesn&#039;t get cut off from page to page, but it&#039;s much faster than some of the alternative solutions Mark ;)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was thinking one work around might be to create an autosized Textfield the entire length of the text off stage.  Then print the page rects until you have reached the height of that clip&#8230;</p>
<p>			var printClip = mc.attachMovie(&#8221;com.magic.views.PrintClip&#8221;, &#8220;printClip&#8221; pageCount, pageCount);<br />
			printClip.init(p_text);<br />
			var yOffSet:Number = 0;</p>
<p>			//printClip.scrollRect = _scrollMask;<br />
		var my_pj:PrintJob = new PrintJob();</p>
<p>		if (my_pj.start())<br />
		{</p>
<p>				while(yOffSet  0){<br />
				my_pj.send();<br />
			}<br />
			delete my_pj;</p>
<p>		}</p>
<p>I&#8217;m still tweaking with it to make sure text doesn&#8217;t get cut off from page to page, but it&#8217;s much faster than some of the alternative solutions Mark ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aral</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-109</link>
		<dc:creator>aral</dc:creator>
		<pubDate>Thu, 06 Jan 2005 15:13:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-109</guid>
		<description>Hi Fran&#231;ois,&lt;br /&gt;
&lt;br /&gt;
The trick is to prepare your pages *before* you start the PrintJob.&lt;br /&gt;
&lt;br /&gt;
Also: I&#039;ve held off on a new post because I uncovered at least one test case wherein my TextAreaDecorator fails.  In fact, it&#039;s not so much the TextAreaDecorator failing but the TextArea absolutely refusing to initialize correctly regardless of how long you wait before invalidating it! &lt;br /&gt;
&lt;br /&gt;
The search for the perfect solution continues...</description>
		<content:encoded><![CDATA[<p>Hi Fran&#231;ois,</p>
<p>The trick is to prepare your pages *before* you start the PrintJob.</p>
<p>Also: I&#8217;ve held off on a new post because I uncovered at least one test case wherein my TextAreaDecorator fails.  In fact, it&#8217;s not so much the TextAreaDecorator failing but the TextArea absolutely refusing to initialize correctly regardless of how long you wait before invalidating it! </p>
<p>The search for the perfect solution continues&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran&#231;ois</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-108</link>
		<dc:creator>Fran&#231;ois</dc:creator>
		<pubDate>Thu, 06 Jan 2005 15:06:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-108</guid>
		<description>Hi again,&lt;br /&gt;
I try the intervals, but a printJob have to be in one frame (read: in the same Scope Chain) to work. With this trick, I have to setup the printer at every documents, and if my document have 3 or more pages, at every page!? Have I miss something?&lt;br /&gt;
Argh says the troll. I have to go back to the (uglier I agree but persuasive) scriptlimit tag hack.&lt;br /&gt;
</description>
		<content:encoded><![CDATA[<p>Hi again,<br />
I try the intervals, but a printJob have to be in one frame (read: in the same Scope Chain) to work. With this trick, I have to setup the printer at every documents, and if my document have 3 or more pages, at every page!? Have I miss something?<br />
Argh says the troll. I have to go back to the (uglier I agree but persuasive) scriptlimit tag hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aral Balkan</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-107</link>
		<dc:creator>Aral Balkan</dc:creator>
		<pubDate>Thu, 06 Jan 2005 04:29:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-107</guid>
		<description>Hi Fran&#231;ois,&lt;br /&gt;
&lt;br /&gt;
Thanks, man! Your application looks very sleek by the way.&lt;br /&gt;
&lt;br /&gt;
The way I designed the print solution, it doesn&#039;t time out: The trick is to use intervals instead of a regular loop. This complicates your implementation, of course, but, since it spans multiple frames, it doesn&#039;t ever timeout. &lt;br /&gt;
&lt;br /&gt;
Hope that helps and best of luck with your app!</description>
		<content:encoded><![CDATA[<p>Hi Fran&#231;ois,</p>
<p>Thanks, man! Your application looks very sleek by the way.</p>
<p>The way I designed the print solution, it doesn&#8217;t time out: The trick is to use intervals instead of a regular loop. This complicates your implementation, of course, but, since it spans multiple frames, it doesn&#8217;t ever timeout. </p>
<p>Hope that helps and best of luck with your app!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran&#231;ois</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-106</link>
		<dc:creator>Fran&#231;ois</dc:creator>
		<pubDate>Wed, 05 Jan 2005 17:26:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-106</guid>
		<description>I&#039;m glad to hear it works!&lt;br /&gt;
Do you experience the &#039;timeout&#039; problem or the material you print is not &#039;heavy&#039; enough? I publish a preview of my App this afternoon:&lt;br /&gt;
http://www.nectil.com/Public/News.php?ID=982&lt;br /&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad to hear it works!<br />
Do you experience the &#8216;timeout&#8217; problem or the material you print is not &#8216;heavy&#8217; enough? I publish a preview of my App this afternoon:<br />
<a href="http://www.nectil.com/Public/News.php?ID=982" rel="nofollow">http://www.nectil.com/Public/News.php?ID=982</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aral</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-105</link>
		<dc:creator>aral</dc:creator>
		<pubDate>Wed, 05 Jan 2005 16:40:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-105</guid>
		<description>Patrick, Greg and Fran&#231;ois -- thank you for taking the time to reply and for your suggestions. Also a big thank-you to Peter (Hall) for suggesting I try to embed fonts last night when we talked about this (Greg and Fran&#231;ois also brought up the same point.) I had completely overlooked it and that was the one remaining thing, meaning... &lt;br /&gt;
&lt;br /&gt;
IT WORKS!!! &lt;br /&gt;
&lt;br /&gt;
The darn thing works!&lt;br /&gt;
&lt;br /&gt;
(I have the FlashPaper to prove it!) &lt;br /&gt;
&lt;br /&gt;
Expect another post after I&#039;m off this train and have had a bite to eat for dinner!&lt;br /&gt;
&lt;br /&gt;
Thank you all again for your help! </description>
		<content:encoded><![CDATA[<p>Patrick, Greg and Fran&#231;ois &#8212; thank you for taking the time to reply and for your suggestions. Also a big thank-you to Peter (Hall) for suggesting I try to embed fonts last night when we talked about this (Greg and Fran&#231;ois also brought up the same point.) I had completely overlooked it and that was the one remaining thing, meaning&#8230; </p>
<p>IT WORKS!!! </p>
<p>The darn thing works!</p>
<p>(I have the FlashPaper to prove it!) </p>
<p>Expect another post after I&#8217;m off this train and have had a bite to eat for dinner!</p>
<p>Thank you all again for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran&#231;ois</title>
		<link>http://aralbalkan.com/252/comment-page-1#comment-104</link>
		<dc:creator>Fran&#231;ois</dc:creator>
		<pubDate>Wed, 05 Jan 2005 05:31:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-104</guid>
		<description>Gwygonik is right, if you want to control Textfield for printing, you have to embed fonts, there is no other options. But don&#039;t be so &#039;critical&#039; with this buggy thing: Textfield is the ONLY object that deal with the system!&lt;br /&gt;
&lt;br /&gt;
And when you&#039;ll be able to print several pages (like a multiple page with a text scrolling...) you will be facing a real, big, and horrible bug: to print multiple pages, you have to write a function (of course). But, but, the PrintJob is calling another system object: the print spooler. tadaaaaa: flash is not really &#039;pausing&#039; your function, so after few seconds, you&#039;ll have a wonderfull &#039;Flash run slowly blabla blabla&#039; error message!&lt;br /&gt;
&lt;br /&gt;
Actually, the only way to &#039;fix&#039; that is to use ASV or Flasm to put the scriptlimit tag to 60 or 120 seconds (and enjoy the debugging...).&lt;br /&gt;
&lt;br /&gt;
I&#039;m looking forward, but if you find an other trick, tell us!&lt;br /&gt;
&lt;br /&gt;
PS: I made a StreetMail Application in my system that print letter or fax in flash templates that output perfectly controled printouts.</description>
		<content:encoded><![CDATA[<p>Gwygonik is right, if you want to control Textfield for printing, you have to embed fonts, there is no other options. But don&#8217;t be so &#8216;critical&#8217; with this buggy thing: Textfield is the ONLY object that deal with the system!</p>
<p>And when you&#8217;ll be able to print several pages (like a multiple page with a text scrolling&#8230;) you will be facing a real, big, and horrible bug: to print multiple pages, you have to write a function (of course). But, but, the PrintJob is calling another system object: the print spooler. tadaaaaa: flash is not really &#8216;pausing&#8217; your function, so after few seconds, you&#8217;ll have a wonderfull &#8216;Flash run slowly blabla blabla&#8217; error message!</p>
<p>Actually, the only way to &#8216;fix&#8217; that is to use ASV or Flasm to put the scriptlimit tag to 60 or 120 seconds (and enjoy the debugging&#8230;).</p>
<p>I&#8217;m looking forward, but if you find an other trick, tell us!</p>
<p>PS: I made a StreetMail Application in my system that print letter or fax in flash templates that output perfectly controled printouts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
