<?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: Simple Preloader in ActionScript 3</title>
	<atom:link href="http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/</link>
	<description>useful tips and resources</description>
	<lastBuildDate>Thu, 03 Nov 2011 13:35:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stuart Smithg</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-91998</link>
		<dc:creator>Stuart Smithg</dc:creator>
		<pubDate>Thu, 03 Mar 2011 10:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-91998</guid>
		<description>I have used this code for a video, i have had to convert the content flv to swf as our intranet at work will not show flv files. This swf video is in scene 2 and the preloader is in scene 1 exactly and is exatly as above.

The preloader works fine when i simulate download but when I upload it only our intranet site, the whole thing does not show up untill it is fully downloaded, there there is a quick flash of the preloader and the movie begins to play. I cannto for the life of me figure out how to correct it. Is it because I am using an intranet site?</description>
		<content:encoded><![CDATA[<p>I have used this code for a video, i have had to convert the content flv to swf as our intranet at work will not show flv files. This swf video is in scene 2 and the preloader is in scene 1 exactly and is exatly as above.</p>
<p>The preloader works fine when i simulate download but when I upload it only our intranet site, the whole thing does not show up untill it is fully downloaded, there there is a quick flash of the preloader and the movie begins to play. I cannto for the life of me figure out how to correct it. Is it because I am using an intranet site?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bamccarren</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-89263</link>
		<dc:creator>bamccarren</dc:creator>
		<pubDate>Tue, 22 Feb 2011 18:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-89263</guid>
		<description>I am new to using flash and have created a site using flash 175. Everything was working beautifully until I received an error in my preloader actions code.

Error reads: 1046: Type was not found or was not a compile-time constant:button

It is saying the error is on this line of code “percent = Math.round ( loaded * 100 );”

Here is my full code:

var loaded:Number;
var percent:Number;
bar.addEventListener( Event.ENTER_FRAME, load_progress );

function load_progress(e:Event):void
{
loaded = stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal ;
percent = Math.round ( loaded * 100 );
}

bar.scaleX = loaded;
loader_info.text = “Loading… ” + percent + “%”;

if( percent == 100 )
{
bar.removeEventListener( Event.ENTER_FRAME, load_progress );
play();
}

Any help you can provide ASAP would be tremendous! Thank you so much.</description>
		<content:encoded><![CDATA[<p>I am new to using flash and have created a site using flash 175. Everything was working beautifully until I received an error in my preloader actions code.</p>
<p>Error reads: 1046: Type was not found or was not a compile-time constant:button</p>
<p>It is saying the error is on this line of code “percent = Math.round ( loaded * 100 );”</p>
<p>Here is my full code:</p>
<p>var loaded:Number;<br />
var percent:Number;<br />
bar.addEventListener( Event.ENTER_FRAME, load_progress );</p>
<p>function load_progress(e:Event):void<br />
{<br />
loaded = stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal ;<br />
percent = Math.round ( loaded * 100 );<br />
}</p>
<p>bar.scaleX = loaded;<br />
loader_info.text = “Loading… ” + percent + “%”;</p>
<p>if( percent == 100 )<br />
{<br />
bar.removeEventListener( Event.ENTER_FRAME, load_progress );<br />
play();<br />
}</p>
<p>Any help you can provide ASAP would be tremendous! Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: basanet</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-30063</link>
		<dc:creator>basanet</dc:creator>
		<pubDate>Mon, 11 Jan 2010 09:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-30063</guid>
		<description>Dear Min Thu,

let me thank you for this little preloader: it&#039;s really a smart and effective solution! I&#039;m quite new at Flash, but I found it very practical and I make it working in a so short time!

However I experienced a little problem and I&#039;d like you to give me your opinion about it. First of all, let me tell that I&#039;ve put the preloader even in the &quot;main.fla&quot; of my project, and in the secondary movieclip it loads when the pages are choosen. Obviously, in every case I put the preloader in the first scene (of two) of the .fla.

But, while it works in the main .fla (I can see the progress bar going regularly to the completion), the other movieclips (corresponding each to a different .fla file) show the bar only when it&#039;s already completed, then pass to the main scene.

Do you have any idea about this behaviour? Maybe the loading of file into a main.fla makes unapplicable this preloading solution?

Thanks for your attention. I hope to ear you soon.
Regards

basanet</description>
		<content:encoded><![CDATA[<p>Dear Min Thu,</p>
<p>let me thank you for this little preloader: it&#8217;s really a smart and effective solution! I&#8217;m quite new at Flash, but I found it very practical and I make it working in a so short time!</p>
<p>However I experienced a little problem and I&#8217;d like you to give me your opinion about it. First of all, let me tell that I&#8217;ve put the preloader even in the &#8220;main.fla&#8221; of my project, and in the secondary movieclip it loads when the pages are choosen. Obviously, in every case I put the preloader in the first scene (of two) of the .fla.</p>
<p>But, while it works in the main .fla (I can see the progress bar going regularly to the completion), the other movieclips (corresponding each to a different .fla file) show the bar only when it&#8217;s already completed, then pass to the main scene.</p>
<p>Do you have any idea about this behaviour? Maybe the loading of file into a main.fla makes unapplicable this preloading solution?</p>
<p>Thanks for your attention. I hope to ear you soon.<br />
Regards</p>
<p>basanet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kennedy</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-27308</link>
		<dc:creator>David Kennedy</dc:creator>
		<pubDate>Thu, 17 Sep 2009 01:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-27308</guid>
		<description>Hi, Dloaded the above sample at http://www.flashmo.com/preview/flashmo_124_delicious

Opened the FLA and cannot find the preloader AS code. Any ideas where it is? I see all the other code. Please help!</description>
		<content:encoded><![CDATA[<p>Hi, Dloaded the above sample at <a href="http://www.flashmo.com/preview/flashmo_124_delicious" rel="nofollow">http://www.flashmo.com/preview/flashmo_124_delicious</a></p>
<p>Opened the FLA and cannot find the preloader AS code. Any ideas where it is? I see all the other code. Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Preloader Infinity Problem in Flash AS3</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-27255</link>
		<dc:creator>Preloader Infinity Problem in Flash AS3</dc:creator>
		<pubDate>Tue, 15 Sep 2009 03:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-27255</guid>
		<description>[...] people have been facing the problem with Flash AS3 preloader. Loading Infinity% seems to be caused by a division by zero error. Below is a little change to the [...]</description>
		<content:encoded><![CDATA[<p>[...] people have been facing the problem with Flash AS3 preloader. Loading Infinity% seems to be caused by a division by zero error. Below is a little change to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-23255</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 10 Apr 2009 14:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-23255</guid>
		<description>jeff: i&#039;ve been doing some looking around regarding geturl as well, and it looks like it&#039;s been depricated in AS3. There&#039;s a URLRequest that seems to have replaced it. Sorry I don&#039;t know more, but maybe that will point you in the right direction???</description>
		<content:encoded><![CDATA[<p>jeff: i&#8217;ve been doing some looking around regarding geturl as well, and it looks like it&#8217;s been depricated in AS3. There&#8217;s a URLRequest that seems to have replaced it. Sorry I don&#8217;t know more, but maybe that will point you in the right direction???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff</title>
		<link>http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/comment-page-1/#comment-21568</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Sat, 21 Mar 2009 23:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdesignmo.com/blog/2008/08/20/simple-preloader-in-actionscript-3/#comment-21568</guid>
		<description>I have a flashmo template in AS3. I need to add a geturl button.  Every time I try the swf just flies through all its frames.

Help.</description>
		<content:encoded><![CDATA[<p>I have a flashmo template in AS3. I need to add a geturl button.  Every time I try the swf just flies through all its frames.</p>
<p>Help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

