<?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: Basic flash preloader</title>
	<atom:link href="http://www.riacodes.com/flash/basic-flash-preloader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riacodes.com/flash/basic-flash-preloader/</link>
	<description>Resources, tutorials , tips &#38; tricks for RIA : Flex, Flash, Air, AS3</description>
	<lastBuildDate>Thu, 29 Jul 2010 05:04:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Michael Benin</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-1306</link>
		<dc:creator>Michael Benin</dc:creator>
		<pubDate>Sat, 29 May 2010 02:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-1306</guid>
		<description>@Chris you would implement this inside your .fla with either external script or on the timeline.</description>
		<content:encoded><![CDATA[<p>@Chris you would implement this inside your .fla with either external script or on the timeline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-1211</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 20 May 2010 12:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-1211</guid>
		<description>how do i implement this in dreamweaver??????? i have been struggling for days to do it O.O

i have put my intro and the preloader SWF in the same folder and changed in the URLrequest lyne into the name of my own file.

- tried to copy the code of the demo site into dreamweaver, and tried my own code.

I think i am missing something here, 


Im trying to make a flash intro doe my site.
If i click on the preloader SWF it works fine, but i just cant implement it correctly into dreamweaver CS4</description>
		<content:encoded><![CDATA[<p>how do i implement this in dreamweaver??????? i have been struggling for days to do it O.O</p>
<p>i have put my intro and the preloader SWF in the same folder and changed in the URLrequest lyne into the name of my own file.</p>
<p>- tried to copy the code of the demo site into dreamweaver, and tried my own code.</p>
<p>I think i am missing something here, </p>
<p>Im trying to make a flash intro doe my site.<br />
If i click on the preloader SWF it works fine, but i just cant implement it correctly into dreamweaver CS4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Benin</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-1030</link>
		<dc:creator>Michael Benin</dc:creator>
		<pubDate>Thu, 01 Apr 2010 22:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-1030</guid>
		<description>sorry folks one minor change...

replace:

accordionTextField.setTextFormat(myFormat); // sets the format from earlier

with this:

accordionTextField.defaultTextFormat = myFormat; //set the format

sorry....</description>
		<content:encoded><![CDATA[<p>sorry folks one minor change&#8230;</p>
<p>replace:</p>
<p>accordionTextField.setTextFormat(myFormat); // sets the format from earlier</p>
<p>with this:</p>
<p>accordionTextField.defaultTextFormat = myFormat; //set the format</p>
<p>sorry&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Benin</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-1027</link>
		<dc:creator>Michael Benin</dc:creator>
		<pubDate>Thu, 01 Apr 2010 03:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-1027</guid>
		<description>//Hey I modified your code to make it fully dynamic and as light as possible i hope you don&#039;t mind me 
// posting my version of your code

var accordionTextField:TextField = new TextField(); // DYNAMICALLY create the textfield
var myFormat:TextFormat = new TextFormat(); // if you have more than one preloader you can set the format for the text
var loader:Loader = new Loader(); // constructor for the loader
var accordionSWF:URLRequest = new URLRequest(&quot;swfs/accordion.swf&quot;); // this is the swf you load

myFormat.color = 0x999999; // set the color    
myFormat.size = 12; // set the size
myFormat.font = &quot;Arial&quot;; // set the font

accordionTextField.x = 266.3; // set the width position for the percentage loader (ideally in the center 
accordionTextField.y = 471.9; // set the height position for the percentage loader (ideally in the center
accordionTextField.selectable = false; // can&#039;t select it 
accordionTextField.setTextFormat(myFormat); // sets the format from earlier
accordionTextField.antiAliasType = AntiAliasType.ADVANCED; // we need this baby clear = )

loader.load(accordionSWF); // initiate the loader with the url request
loader.x = 10; // this is where the swf width postion
loader.y = 351; // this is where the swf height position

addChild(accordionTextField); // adds the textfield you created to the stage 
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); 
// progress event listener on loader 
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); 
// complete event when it&#039;s done loading
function progressHandler(event:ProgressEvent):void // the actual function here, what logic occurs
{ 
var ratio:Number = event.bytesLoaded / event.bytesTotal; // creates the ratio variable and sets the value
accordionTextField.text = Math.ceil(ratio*100)+&quot;%&quot;.toString(); // sets the dynamic textfield
} 
function completeHandler(event:Event):void{ // function to remove the textfield
removeChild(accordionTextField);  // remove it 
}
 
addChild(loader); // add the swf you are loading</description>
		<content:encoded><![CDATA[<p>//Hey I modified your code to make it fully dynamic and as light as possible i hope you don&#8217;t mind me<br />
// posting my version of your code</p>
<p>var accordionTextField:TextField = new TextField(); // DYNAMICALLY create the textfield<br />
var myFormat:TextFormat = new TextFormat(); // if you have more than one preloader you can set the format for the text<br />
var loader:Loader = new Loader(); // constructor for the loader<br />
var accordionSWF:URLRequest = new URLRequest(&#8220;swfs/accordion.swf&#8221;); // this is the swf you load</p>
<p>myFormat.color = 0&#215;999999; // set the color<br />
myFormat.size = 12; // set the size<br />
myFormat.font = &#8220;Arial&#8221;; // set the font</p>
<p>accordionTextField.x = 266.3; // set the width position for the percentage loader (ideally in the center<br />
accordionTextField.y = 471.9; // set the height position for the percentage loader (ideally in the center<br />
accordionTextField.selectable = false; // can&#8217;t select it<br />
accordionTextField.setTextFormat(myFormat); // sets the format from earlier<br />
accordionTextField.antiAliasType = AntiAliasType.ADVANCED; // we need this baby clear = )</p>
<p>loader.load(accordionSWF); // initiate the loader with the url request<br />
loader.x = 10; // this is where the swf width postion<br />
loader.y = 351; // this is where the swf height position</p>
<p>addChild(accordionTextField); // adds the textfield you created to the stage<br />
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);<br />
// progress event listener on loader<br />
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);<br />
// complete event when it&#8217;s done loading<br />
function progressHandler(event:ProgressEvent):void // the actual function here, what logic occurs<br />
{<br />
var ratio:Number = event.bytesLoaded / event.bytesTotal; // creates the ratio variable and sets the value<br />
accordionTextField.text = Math.ceil(ratio*100)+&#8221;%&#8221;.toString(); // sets the dynamic textfield<br />
}<br />
function completeHandler(event:Event):void{ // function to remove the textfield<br />
removeChild(accordionTextField);  // remove it<br />
}</p>
<p>addChild(loader); // add the swf you are loading</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ujjual</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-1020</link>
		<dc:creator>Ujjual</dc:creator>
		<pubDate>Wed, 31 Mar 2010 05:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-1020</guid>
		<description>it was good n very nicely breifed.
Thankyou</description>
		<content:encoded><![CDATA[<p>it was good n very nicely breifed.<br />
Thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erico</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-982</link>
		<dc:creator>Erico</dc:creator>
		<pubDate>Wed, 17 Mar 2010 23:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-982</guid>
		<description>nice piece of work, helped me much! gl</description>
		<content:encoded><![CDATA[<p>nice piece of work, helped me much! gl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-865</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 10 Feb 2010 14:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-865</guid>
		<description>hey do you guys happened to know of a AS3.0 preloader tutorial that uses the 2 Frames method like the old AS2.0 way?? I like this tutorial but somehow i faced some problem with loading external swf due to certain components and framework, and i need this fast hence i do not have the time to redo the framework...

Any help will be appreciated.</description>
		<content:encoded><![CDATA[<p>hey do you guys happened to know of a AS3.0 preloader tutorial that uses the 2 Frames method like the old AS2.0 way?? I like this tutorial but somehow i faced some problem with loading external swf due to certain components and framework, and i need this fast hence i do not have the time to redo the framework&#8230;</p>
<p>Any help will be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Projektowanie</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-850</link>
		<dc:creator>Projektowanie</dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-850</guid>
		<description>perfect preloader, thx again</description>
		<content:encoded><![CDATA[<p>perfect preloader, thx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-385</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Tue, 06 Oct 2009 23:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-385</guid>
		<description>Hi and Thanks for the great and easy tutorial.
I&#039;ve never needed to use a preloader before now. But I have a Flash website that is pretty big and takes a while to load the Opening.INDEX HTML
My biggest challenge is to figure out if I should add this code and scenes to my existing SWF that my HTML is loading ... or should I create a SWF and a HTML using the PRELOADER (that you just taught me to make) and rename it INDEX.HTML?
Does this make sense? 
Thanks in advance,
Rick</description>
		<content:encoded><![CDATA[<p>Hi and Thanks for the great and easy tutorial.<br />
I&#8217;ve never needed to use a preloader before now. But I have a Flash website that is pretty big and takes a while to load the Opening.INDEX HTML<br />
My biggest challenge is to figure out if I should add this code and scenes to my existing SWF that my HTML is loading &#8230; or should I create a SWF and a HTML using the PRELOADER (that you just taught me to make) and rename it INDEX.HTML?<br />
Does this make sense?<br />
Thanks in advance,<br />
Rick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k77</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-265</link>
		<dc:creator>k77</dc:creator>
		<pubDate>Sat, 29 Aug 2009 07:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-265</guid>
		<description>I wanted to tell, what encodes put in the Web page for inserer the preloader?
 thank you</description>
		<content:encoded><![CDATA[<p>I wanted to tell, what encodes put in the Web page for inserer the preloader?<br />
 thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>
