<?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: Custom Flex 3 Lightweight Preloader with source code</title>
	<atom:link href="http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/</link>
	<description>The Fastest Way to Launch Successful Software</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:36:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sasha Dzeletovic</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-10691</link>
		<dc:creator>Sasha Dzeletovic</dc:creator>
		<pubDate>Fri, 03 Jun 2011 18:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-10691</guid>
		<description>Paul, I&#039;m sorry about that. We moved new domain recently and I didn&#039;t put in all the redirects in.

Link is still the same but the redirect points to new location now.</description>
		<content:encoded><![CDATA[<p>Paul, I&#8217;m sorry about that. We moved new domain recently and I didn&#8217;t put in all the redirects in.</p>
<p>Link is still the same but the redirect points to new location now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-10690</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 03 Jun 2011 16:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-10690</guid>
		<description>The source link doesn&#039;t work anymore can you provide a new link?</description>
		<content:encoded><![CDATA[<p>The source link doesn&#8217;t work anymore can you provide a new link?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Blogagic Custom Flex Preloader &#124; Blogagic</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8610</link>
		<dc:creator>The Blogagic Custom Flex Preloader &#124; Blogagic</dc:creator>
		<pubDate>Thu, 20 May 2010 22:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8610</guid>
		<description>[...] to integrate a Flash movie in my preloader). So, I took the one that was close to my expectations (coming from here) and started to tailor it a little [...]</description>
		<content:encoded><![CDATA[<p>[...] to integrate a Flash movie in my preloader). So, I took the one that was close to my expectations (coming from here) and started to tailor it a little [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajiv Totlani</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8609</link>
		<dc:creator>Rajiv Totlani</dc:creator>
		<pubDate>Mon, 21 Dec 2009 17:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8609</guid>
		<description>Nice...for those who do want something more customized with there logo etc, the challenge lies not in the 1 line of Flex code, but more in the Flash graphic which the flex preloader will use.

For those who want something good and affordable, there are some websites out there that sell Flex preloades for under $10 like http://www.flexdownloads.com. I kind of like there preloaders better than the default one :)</description>
		<content:encoded><![CDATA[<p>Nice&#8230;for those who do want something more customized with there logo etc, the challenge lies not in the 1 line of Flex code, but more in the Flash graphic which the flex preloader will use.</p>
<p>For those who want something good and affordable, there are some websites out there that sell Flex preloades for under $10 like <a href="http://www.flexdownloads.com" rel="nofollow">http://www.flexdownloads.com</a>. I kind of like there preloaders better than the default one <img src='http://pathfindersoftware.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaus</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8608</link>
		<dc:creator>Klaus</dc:creator>
		<pubDate>Fri, 20 Nov 2009 03:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8608</guid>
		<description>Hi again after a litle bit of study on how the style manager works y understood that i could load styles from the preloader into the aplication.

heres is the code that needed to change to make it happen.

there are a few problems with the bar because it still downloads the full aplication before it starts downloading the style so the bar is full before itshould be but you can play with this making and drawing 2 bars or using 2 colors or 2 diferent alphas
you choose.

////

protected var _IsStyleComplete:Boolean = false;
protected var _styleBytesLoaded:uint = 0;
protected var _styleBytesExpected:uint = 1;
virtual public function set preloader(value:Sprite):void {
    _preloader = value;
    value.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    value.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler);
    value.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler);
    var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations(&quot;main.swf&quot;);
    eventDispatcher.addEventListener(StyleEvent.COMPLETE, completeStyleHandler);
   eventDispatcher.addEventListener(StyleEvent.PROGRESS, progressStyleHandler);
}
virtual protected function progressHandler(event:ProgressEvent):void {
    _bytesLoaded = event.bytesLoaded;
    _bytesExpected = event.bytesTotal;
    _fractionLoaded = (Number(_bytesLoaded) + Number(_styleBytesLoaded)) / (Number(_bytesExpected) + Number(_styleBytesExpected));
    draw();
}
virtual protected function progressStyleHandler(event:StyleEvent):void {
    _styleBytesLoaded = event.bytesLoaded;
    _styleBytesExpected = event.bytesTotal;
    _fractionLoaded = (Number(_bytesLoaded) + Number(_styleBytesLoaded)) / (Number(_bytesExpected) + Number(_styleBytesExpected));
    draw();
}
virtual protected function completeStyleHandler(event:Event):void {
    _IsStyleComplete = true;
}
virtual protected function timerHandler(event:Event):void {
    if (_IsInitComplete &amp;&amp; _IsStyleComplete) {
        _timer.stop();
        dispatchEvent(new Event(Event.COMPLETE));
    } else
        draw();
}
////</description>
		<content:encoded><![CDATA[<p>Hi again after a litle bit of study on how the style manager works y understood that i could load styles from the preloader into the aplication.</p>
<p>heres is the code that needed to change to make it happen.</p>
<p>there are a few problems with the bar because it still downloads the full aplication before it starts downloading the style so the bar is full before itshould be but you can play with this making and drawing 2 bars or using 2 colors or 2 diferent alphas<br />
you choose.</p>
<p>////</p>
<p>protected var _IsStyleComplete:Boolean = false;<br />
protected var _styleBytesLoaded:uint = 0;<br />
protected var _styleBytesExpected:uint = 1;<br />
virtual public function set preloader(value:Sprite):void {<br />
    _preloader = value;<br />
    value.addEventListener(ProgressEvent.PROGRESS, progressHandler);<br />
    value.addEventListener(FlexEvent.INIT_PROGRESS, initProgressHandler);<br />
    value.addEventListener(FlexEvent.INIT_COMPLETE, initCompleteHandler);<br />
    var eventDispatcher:IEventDispatcher = StyleManager.loadStyleDeclarations(&#8220;main.swf&#8221;);<br />
    eventDispatcher.addEventListener(StyleEvent.COMPLETE, completeStyleHandler);<br />
   eventDispatcher.addEventListener(StyleEvent.PROGRESS, progressStyleHandler);<br />
}<br />
virtual protected function progressHandler(event:ProgressEvent):void {<br />
    _bytesLoaded = event.bytesLoaded;<br />
    _bytesExpected = event.bytesTotal;<br />
    _fractionLoaded = (Number(_bytesLoaded) + Number(_styleBytesLoaded)) / (Number(_bytesExpected) + Number(_styleBytesExpected));<br />
    draw();<br />
}<br />
virtual protected function progressStyleHandler(event:StyleEvent):void {<br />
    _styleBytesLoaded = event.bytesLoaded;<br />
    _styleBytesExpected = event.bytesTotal;<br />
    _fractionLoaded = (Number(_bytesLoaded) + Number(_styleBytesLoaded)) / (Number(_bytesExpected) + Number(_styleBytesExpected));<br />
    draw();<br />
}<br />
virtual protected function completeStyleHandler(event:Event):void {<br />
    _IsStyleComplete = true;<br />
}<br />
virtual protected function timerHandler(event:Event):void {<br />
    if (_IsInitComplete &amp;&amp; _IsStyleComplete) {<br />
        _timer.stop();<br />
        dispatchEvent(new Event(Event.COMPLETE));<br />
    } else<br />
        draw();<br />
}<br />
////</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaus</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8607</link>
		<dc:creator>Klaus</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8607</guid>
		<description>Hello Sasha,

thanks for this great preloader

I have a question though.

I have an application swf and a css swf, and i need them to be separated.

do you know how make the bar show the percentage of both files?</description>
		<content:encoded><![CDATA[<p>Hello Sasha,</p>
<p>thanks for this great preloader</p>
<p>I have a question though.</p>
<p>I have an application swf and a css swf, and i need them to be separated.</p>
<p>do you know how make the bar show the percentage of both files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phu</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8606</link>
		<dc:creator>Phu</dc:creator>
		<pubDate>Fri, 14 Aug 2009 04:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8606</guid>
		<description>Great! Thank you very much.</description>
		<content:encoded><![CDATA[<p>Great! Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Pereira</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8605</link>
		<dc:creator>Gustavo Pereira</dc:creator>
		<pubDate>Sat, 11 Jul 2009 12:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8605</guid>
		<description>This is really cool and very useful. Thanks Sasha!</description>
		<content:encoded><![CDATA[<p>This is really cool and very useful. Thanks Sasha!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8604</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Fri, 22 May 2009 12:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8604</guid>
		<description>i implemented thi preloader for flex , quite good looking ,Took source code from this link

&lt;a href=&#039;http://askmeflash.com/article_m.php?p=article&amp;id=7&#039; rel=&quot;nofollow&quot;&gt;http://askmeflash.com/article_m.php?p=article&amp;id=7&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>i implemented thi preloader for flex , quite good looking ,Took source code from this link</p>
<p><a href='http://askmeflash.com/article_m.php?p=article&amp;id=7' rel="nofollow">http://askmeflash.com/article_m.php?p=article&#038;id=7</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fizzy</title>
		<link>http://pathfindersoftware.com/2008/08/custom-flex-3-lightweight-preloader-with-source-code/#comment-8603</link>
		<dc:creator>Fizzy</dc:creator>
		<pubDate>Fri, 15 May 2009 15:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pathf.com/blogs/?p=1101#comment-8603</guid>
		<description>Hi Sasha,

This is great. Thanks for sharing. Is there a way to set a minimum time for this preloader? I&#039;ve seen the following used elsewhere.

MINIMUM_DISPLAY_TIME=2000;

Would this work in your preloader. If so, where should it be added?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Sasha,</p>
<p>This is great. Thanks for sharing. Is there a way to set a minimum time for this preloader? I&#8217;ve seen the following used elsewhere.</p>
<p>MINIMUM_DISPLAY_TIME=2000;</p>
<p>Would this work in your preloader. If so, where should it be added?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (User agent is rejected)
Page Caching using memcached (User agent is rejected)

Served from: pathfindersoftware.com @ 2012-02-10 02:45:21 -->
