<?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>Fri, 13 Jan 2012 21:28:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Calvin</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-13679</link>
		<dc:creator>Calvin</dc:creator>
		<pubDate>Tue, 15 Nov 2011 07:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-13679</guid>
		<description>Hi, want to ask that i had the preloader already but after the preloader finish it cant load my main swf.</description>
		<content:encoded><![CDATA[<p>Hi, want to ask that i had the preloader already but after the preloader finish it cant load my main swf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-13483</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 10 Nov 2011 18:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-13483</guid>
		<description>Thank you for this tutorial. I saw similar tut on another site, but there is a problem in both examples of codes.  Fact is that loaded .swf-file doesn&#039;t work(for example I loaded a flash-site(.swf), but buttons doesn&#039;t work). What is a matter and how it&#039;s possible to solve it? (Sorry for my English, I&#039;m not Englishman - I&#039;m Russian). Write me please to my e-mail. I&#039;m waiting for it. Thanks in Advance!</description>
		<content:encoded><![CDATA[<p>Thank you for this tutorial. I saw similar tut on another site, but there is a problem in both examples of codes.  Fact is that loaded .swf-file doesn&#8217;t work(for example I loaded a flash-site(.swf), but buttons doesn&#8217;t work). What is a matter and how it&#8217;s possible to solve it? (Sorry for my English, I&#8217;m not Englishman &#8211; I&#8217;m Russian). Write me please to my e-mail. I&#8217;m waiting for it. Thanks in Advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-7482</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Sat, 12 Feb 2011 03:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-7482</guid>
		<description>Having trouble with the URL......&quot;URL not found&quot;

its in the same directory as the script, its a swf file, case is identical to file name................
I got it to work once, but can not see what i&#039;m doing wrong now</description>
		<content:encoded><![CDATA[<p>Having trouble with the URL&#8230;&#8230;&#8221;URL not found&#8221;</p>
<p>its in the same directory as the script, its a swf file, case is identical to file name&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
I got it to work once, but can not see what i&#8217;m doing wrong now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward</title>
		<link>http://www.riacodes.com/flash/basic-flash-preloader/comment-page-1/#comment-7473</link>
		<dc:creator>Edward</dc:creator>
		<pubDate>Fri, 11 Feb 2011 12:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=12#comment-7473</guid>
		<description>3 I imagine small problems

1 I dont know if its because I&#039;m running on a fast pc, but cant really test code, as the first page of the site
    loads before I can see the counter or bar

2 loader screen does not clear when page is loaded

other than that great and easy loader
ps: plse be patient i&#039;m a newbee</description>
		<content:encoded><![CDATA[<p>3 I imagine small problems</p>
<p>1 I dont know if its because I&#8217;m running on a fast pc, but cant really test code, as the first page of the site<br />
    loads before I can see the counter or bar</p>
<p>2 loader screen does not clear when page is loaded</p>
<p>other than that great and easy loader<br />
ps: plse be patient i&#8217;m a newbee</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

