<?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/"
		>
<channel>
	<title>Comments on: Actionscript 3 Preloader</title>
	<atom:link href="http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Fri, 21 Oct 2011 17:05:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Postmortem del juego de Cachicamoconcaspa &#124; El Chigüire Literario</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-1264</link>
		<dc:creator>Postmortem del juego de Cachicamoconcaspa &#124; El Chigüire Literario</dc:creator>
		<pubDate>Tue, 20 Sep 2011 23:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-1264</guid>
		<description>[...] De haber investigado un poco más me hubiese enterado de que es posible crear un preloader indicándole al compilador que incluya un frame como preloader. [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #fbfbfb; border: 1px solid #457AA5;">
<p>[...] De haber investigado un poco más me hubiese enterado de que es posible crear un preloader indicándole al compilador que incluya un frame como preloader. [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: dieBuster Flash &#187; Blog Archive &#187; Flex에서 순수 AS3로 Preloader 구현하기</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-1168</link>
		<dc:creator>dieBuster Flash &#187; Blog Archive &#187; Flex에서 순수 AS3로 Preloader 구현하기</dc:creator>
		<pubDate>Tue, 12 Apr 2011 16:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-1168</guid>
		<description>[...] http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/ [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #fbfbfb; border: 1px solid #457AA5;">
<p>[...] <a href="http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/" rel="nofollow">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/</a> [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preloading in three frames system. &#171; FlashImp</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-1061</link>
		<dc:creator>Preloading in three frames system. &#171; FlashImp</dc:creator>
		<pubDate>Wed, 23 Dec 2009 17:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-1061</guid>
		<description>[...] Ð³Ð¾Ð´Ð° Ð½Ð°Ð·Ð°Ð´ Ñ Ð½Ð°ÐºÐ¾Ð´Ð¸Ð» Ð¿Ñ€Ð¾ÑÑ‚ÐµÐ½ÑŒÐºÐ¸Ð¹ Ð¿ÐµÑ€ÐµÐ´Ð·Ð°Ð³Ñ€ÑƒÐ·Ñ‡Ð¸Ðº (Ð°Ð½Ð°Ð»Ð¾Ð³), ÑÑ‚Ð°Ñ€Ñ‚ÑƒÑŽÑ‰Ð¸Ð¹ Ð´Ð¾ Ð¸Ð½Ð¸Ñ†Ð¸Ð°Ð»Ð¸Ð·Ð°Ñ†Ð¸Ð¸ Ð³Ð»Ð°Ð²Ð½Ð¾Ð³Ð¾ ÐºÐ»Ð°ÑÑÐ° [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #fbfbfb; border: 1px solid #457AA5;">
<p>[...] Ð³Ð¾Ð´Ð° Ð½Ð°Ð·Ð°Ð´ Ñ Ð½Ð°ÐºÐ¾Ð´Ð¸Ð» Ð¿Ñ€Ð¾ÑÑ‚ÐµÐ½ÑŒÐºÐ¸Ð¹ Ð¿ÐµÑ€ÐµÐ´Ð·Ð°Ð³Ñ€ÑƒÐ·Ñ‡Ð¸Ðº (Ð°Ð½Ð°Ð»Ð¾Ð³), ÑÑ‚Ð°Ñ€Ñ‚ÑƒÑŽÑ‰Ð¸Ð¹ Ð´Ð¾ Ð¸Ð½Ð¸Ñ†Ð¸Ð°Ð»Ð¸Ð·Ð°Ñ†Ð¸Ð¸ Ð³Ð»Ð°Ð²Ð½Ð¾Ð³Ð¾ ÐºÐ»Ð°ÑÑÐ° [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: dieBuster &#187; Flexì—ì„œ ìˆœìˆ˜ AS3ë¡œ Preloader êµ¬í˜„í•˜ê¸°</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-880</link>
		<dc:creator>dieBuster &#187; Flexì—ì„œ ìˆœìˆ˜ AS3ë¡œ Preloader êµ¬í˜„í•˜ê¸°</dc:creator>
		<pubDate>Wed, 15 Apr 2009 07:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-880</guid>
		<description>[...] http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/ [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #fbfbfb; border: 1px solid #457AA5;">
<p>[...] <a href="http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/" rel="nofollow">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/</a> [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: WasabiJesus &#187; Blog Archive &#187; Bookmarks for December 20th</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-783</link>
		<dc:creator>WasabiJesus &#187; Blog Archive &#187; Bookmarks for December 20th</dc:creator>
		<pubDate>Sun, 21 Dec 2008 04:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-783</guid>
		<description>[...] Dreaming in Flash &#187; Blog Archive &#187; Actionscript 3 Preloader - [...]</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #fbfbfb; border: 1px solid #457AA5;">
<p>[...] Dreaming in Flash &raquo; Blog Archive &raquo; Actionscript 3 Preloader &#8211; [...]</p>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris S</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-276</link>
		<dc:creator>Chris S</dc:creator>
		<pubDate>Sat, 12 Apr 2008 21:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-276</guid>
		<description>Hi Idoru,

Thanks for your feedback. Yeah, I&#039;ve abandoned hope of getting it to work in CS3, since it doesn&#039;t support the [Embde...] tag. I&#039;m now focussing on getting it to work with mxmlc. Another problem I found was the [Frame...] tag also had a &quot;;&quot;, which blocked the preloader, but now that&#039;s fixed.

Unfortunately, I&#039;m 100% certain your code as-is does not update the status. You can see this for yourself by using ExternalInterface to write to the percent to Firebug&#039;s console.log. For example:

ExternalInterface.call(&quot;console.log&quot;, &#039;onenterframe loading:&#039;+percent)

You&#039;ll see that only executes once. However, I did find how to make your code correctly update status, by adding these lines to the preloader&#039;s constructor:

this.loaderInfo.addEventListener(Event.INIT, onEnterFrame);
			this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onEnterFrame);
			this.loaderInfo.addEventListener(Event.COMPLETE, onEnterFrame);

With these lines, Firebug shows the status percent being updated correctly. However, for some reason the graphics are not being refreshed. Even though the percent changes, all I see is the first status update where it&#039;s only at about 30%.

Can you think of any reason for this?</description>
		<content:encoded><![CDATA[<p>Hi Idoru,</p>
<p>Thanks for your feedback. Yeah, I&#8217;ve abandoned hope of getting it to work in CS3, since it doesn&#8217;t support the [Embde...] tag. I&#8217;m now focussing on getting it to work with mxmlc. Another problem I found was the [Frame...] tag also had a &#8220;;&#8221;, which blocked the preloader, but now that&#8217;s fixed.</p>
<p>Unfortunately, I&#8217;m 100% certain your code as-is does not update the status. You can see this for yourself by using ExternalInterface to write to the percent to Firebug&#8217;s console.log. For example:</p>
<p>ExternalInterface.call(&#8220;console.log&#8221;, &#8216;onenterframe loading:&#8217;+percent)</p>
<p>You&#8217;ll see that only executes once. However, I did find how to make your code correctly update status, by adding these lines to the preloader&#8217;s constructor:</p>
<p>this.loaderInfo.addEventListener(Event.INIT, onEnterFrame);<br />
			this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onEnterFrame);<br />
			this.loaderInfo.addEventListener(Event.COMPLETE, onEnterFrame);</p>
<p>With these lines, Firebug shows the status percent being updated correctly. However, for some reason the graphics are not being refreshed. Even though the percent changes, all I see is the first status update where it&#8217;s only at about 30%.</p>
<p>Can you think of any reason for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idoru</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-275</link>
		<dc:creator>Idoru</dc:creator>
		<pubDate>Sat, 12 Apr 2008 21:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-275</guid>
		<description>Hi Chris,
I&#039;m pretty sure everything works fine and it does update the status bar, but I have no idea of what will happen when you use this code in CS3, because CS3 and Flex have different ways of compiling the swf. This is essentially adding a frame to to the swf, which in Flex is a bit harder because of not having all that timeline stuff. I have no idea how to achieve the same functionality on CS3. Plus you can check that the onEnterframe does get called as it&#039;s a listener, I think that you must have embbeded the image on the first frame and not on the second, hence causing the preloader not to show.

But thank you for the comments and for the feedback, I will try and get a CS3 version working though.</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
I&#8217;m pretty sure everything works fine and it does update the status bar, but I have no idea of what will happen when you use this code in CS3, because CS3 and Flex have different ways of compiling the swf. This is essentially adding a frame to to the swf, which in Flex is a bit harder because of not having all that timeline stuff. I have no idea how to achieve the same functionality on CS3. Plus you can check that the onEnterframe does get called as it&#8217;s a listener, I think that you must have embbeded the image on the first frame and not on the second, hence causing the preloader not to show.</p>
<p>But thank you for the comments and for the feedback, I will try and get a CS3 version working though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris S</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-274</link>
		<dc:creator>Chris S</dc:creator>
		<pubDate>Sat, 12 Apr 2008 20:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-274</guid>
		<description>Btw, I&#039;m pretty sure this code doesn&#039;t update status, at all. onEnterFrame() will only be called once, not for every progress update, so your status bar will never get shown. I verified this by compiling an example with a 100MB image, and no status bar was ever shown. You should probably combine your code with the example at http://newmovieclip.wordpress.com/2007/03/14/preloader-in-flash-cs3-actionscript-30-way/</description>
		<content:encoded><![CDATA[<p>Btw, I&#8217;m pretty sure this code doesn&#8217;t update status, at all. onEnterFrame() will only be called once, not for every progress update, so your status bar will never get shown. I verified this by compiling an example with a 100MB image, and no status bar was ever shown. You should probably combine your code with the example at <a href="http://newmovieclip.wordpress.com/2007/03/14/preloader-in-flash-cs3-actionscript-30-way/" rel="nofollow">http://newmovieclip.wordpress.com/2007/03/14/preloader-in-flash-cs3-actionscript-30-way/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris S</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-273</link>
		<dc:creator>Chris S</dc:creator>
		<pubDate>Sat, 12 Apr 2008 20:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-273</guid>
		<description>In response to the &quot;Embed is only supported on...&quot; error, I figured that one out. Turns out I made the mistake of using Flash CS3&#039;s &quot;auto format&quot; tool, which puts a &quot;;&quot; at the end of the [Embed...], which is of course a formatting error.</description>
		<content:encoded><![CDATA[<p>In response to the &#8220;Embed is only supported on&#8230;&#8221; error, I figured that one out. Turns out I made the mistake of using Flash CS3&#8217;s &#8220;auto format&#8221; tool, which puts a &#8220;;&#8221; at the end of the [Embed...], which is of course a formatting error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris S</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/comment-page-1/#comment-272</link>
		<dc:creator>Chris S</dc:creator>
		<pubDate>Sat, 12 Apr 2008 20:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comment-272</guid>
		<description>When I tried to compile with mxmlc, I got the compile-time error:
Main.as(11): col: 4: Error: Embed is only supported on classes and member variables.</description>
		<content:encoded><![CDATA[<p>When I tried to compile with mxmlc, I got the compile-time error:<br />
Main.as(11): col: 4: Error: Embed is only supported on classes and member variables.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

