<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; Flash</title>
	<atom:link href="http://newsourcemedia.com/blog/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apple bans Flash CS5 iPhone App Compiler</title>
		<link>http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/</link>
		<comments>http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 04:12:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[Third Party Apps]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/"><img title="Apple bans Flash CS5 iPhone App Compiler" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/04/police-iphone.jpg" alt="Apple bans Flash CS5 iPhone App Compiler" width="200" height="105" /></a></span><br/>Update: Today April 9th 2010, Lee Brimelow, an Adobe platform evangelist responded to the latest poster from Apple with "Go screw yourself " on his popular web blog TheFlashBlog.com. It's hard not to notice the frustration of developers across the &#8230; <a href="http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/"><img title="Apple bans Flash CS5 iPhone App Compiler" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/04/police-iphone.jpg" alt="Apple bans Flash CS5 iPhone App Compiler" width="200" height="105" /></a></span><br/><img class="alignnone size-full wp-image-666" title="police-iphone" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/04/police-iphone.jpg" alt="" width="487" height="256" />

<strong>Update</strong>: Today April 9th 2010, Lee Brimelow, an Adobe platform evangelist responded to the latest poster from Apple with <a href="http://theflashblog.com/?p=1888" target="_blank">"Go screw yourself "</a> on his popular web blog <a href="http://theflashblog.com/">TheFlashBlog.com</a>. It's hard not to notice the frustration of developers across the blogosphere fuel by Apple's refusal to allow third party API compiled apps in to the iTunes store.

The language from Apple's agreement states "Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs". This stipulation is a loathsome move by Apple to render the new Flash CS5 feature of porting Flash files as iPhone/iPad apps totally useless.

I wonder how many flash developers will delay upgrade to CS5 once they get wind of Apple's stipulation. I've noticed a few developers complaining that their apps were rejected because of the use of third party APIs such as Corona, PhoneGap &amp; Titanium

<strong>Read the Titanium's rejection forum post here:</strong>
<a href="http://developer.appcelerator.com/question/3921/about-the-iphone-private-api-in-use" target="_blank">http://developer.appcelerator.com/question/3921/about-the-iphone-private-api-in-use</a>

<strong>John Gruber of Daring Fireball was the first to post these changes:</strong>
<a href="http://daringfireball.net/2010/04/iphone_agreement_bans_flash_compiler" target="_blank">http://daringfireball.net/2010/04/iphone_agreement_bans_flash_compiler</a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/apple-bans-flash-cs5-iphone-app-compiler/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Banner Design Logo Placement Tips</title>
		<link>http://newsourcemedia.com/blog/banner-design-logo-placement-tips/</link>
		<comments>http://newsourcemedia.com/blog/banner-design-logo-placement-tips/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 16:51:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Communication]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash AS2]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://am3media.com/site/?p=432</guid>
		<description><![CDATA[When designing skyscraper banners (160x600 and 130x160…etc.) try incorporating your logo in to the top and bottom portions of your banner layouts. If you only want to include one logo, try positioning the logo in the top or middle portions &#8230; <a href="http://newsourcemedia.com/blog/banner-design-logo-placement-tips/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[When designing skyscraper banners (160x600 and 130x160…etc.) try incorporating your logo in to the top and bottom portions of your banner layouts.
If you only want to include one logo, try positioning the logo in the top or middle portions of the banner.
If you only include your brand identity at the bottom, it’s will most likely fall below the fold (below the initial browser window area) and out of view of the user. Having a logo atop of the banner insures the viewer will be able to identity the brand associated with the message and call to actions.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/banner-design-logo-placement-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flash not on Apple iPad or iPhone</title>
		<link>http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/</link>
		<comments>http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 02:29:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Publish]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/flash-not-on-ipad-iphone-and-ipod-touch/</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/"><img title="Adobe Flash not on Apple iPad or iPhone" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/01/app-shots.jpg" alt="Adobe Flash not on Apple iPad or iPhone" width="200" height="53" /></a></span><br/>Why is it that Apple refuse to assets Adobe in their effort to deploy Flash on iPhones and iPads? Some people believe that Apple fearful that Flash will reek havoc on their battery life. Some think it's purly profit driven. &#8230; <a href="http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/"><img title="Adobe Flash not on Apple iPad or iPhone" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/01/app-shots.jpg" alt="Adobe Flash not on Apple iPad or iPhone" width="200" height="53" /></a></span><br/><img class="alignnone size-full wp-image-633" title="app-shots" src="http://newsourcemedia.com/blog/wp-content/uploads/2010/01/app-shots.jpg" alt="app-shots" width="533" height="143" />

Why is it that Apple refuse to assets Adobe in their effort to deploy Flash on iPhones and iPads? Some people believe that Apple fearful that Flash will reek havoc on their battery life. Some think it's purly profit driven. Think about it. Apple only used Flash on their web site for about a year or two before strictly used QuickTime to handle all of their site's rich-media content. So they are keep in the same vain by not supporting flash on their Mobile devices.

As a consumer and as a Flash developer, I'm split on this issue. Why? Well I've been a Apple user (designer) long before I became a Flash user (developer). Plus I've always enjoyed Apple product because they have the tendency of being much more stable than their competitors.

I do feel that Adobe is getting the short end of the stick though. Together, Apple's OS coupled with Adobe's creative suits has been such a perfect relationship for those of us in the creative industry. But now with all of the new growth that Apple has had in the mobile sector, they are leaving Adobe to fend for themselves.

The good new is Adobe took some huge steps to remedy this problem by adding a new publishing option in the new Adobe® Flash® Professional CS5. We will now beable to publish AS3 projects files as native iPhone apps. I'm note sure on all the technoligy behine it but they have a few apps up on line now ready for your iPhone... all build using Adobe CS5 beta. Here are a few iPhone applications build using Flash and downloadable via the Apple App Store.

<a href="http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/" target="_blank">http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/</a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/flash-not-on-ipad-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use JQuary LightBox with Flash getURL</title>
		<link>http://newsourcemedia.com/blog/how-to-use-jquary-lightbox-with-flash-geturl/</link>
		<comments>http://newsourcemedia.com/blog/how-to-use-jquary-lightbox-with-flash-geturl/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 03:36:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash AS2]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Execute]]></category>
		<category><![CDATA[getURL]]></category>
		<category><![CDATA[In Flash]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://am3media.com/site/?p=370</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/how-to-use-jquary-lightbox-with-flash-geturl/"><img title="How to use JQuary LightBox with Flash getURL" src="http://am3media.com/site/wp-content/uploads/2009/11/Picture-1-291x300.png" alt="How to use JQuary LightBox with Flash getURL" width="0" height="200" /></a></span><br/>I was searching ways to use Lightbox in Flash and found this great article at CodeFidelity.com. http://blog.codefidelity.com/?p=18]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/how-to-use-jquary-lightbox-with-flash-geturl/"><img title="How to use JQuary LightBox with Flash getURL" src="http://am3media.com/site/wp-content/uploads/2009/11/Picture-1-291x300.png" alt="How to use JQuary LightBox with Flash getURL" width="0" height="200" /></a></span><br/>I was searching ways to use Lightbox in Flash and found this great article at CodeFidelity.com.

<a href="http://blog.codefidelity.com/?p=18" target="_blank">http://blog.codefidelity.com/?p=18</a>

<a href="http://blog.codefidelity.com/?p=18" target="_blank"><img class="alignnone size-medium wp-image-371" title="Picture 1" src="http://am3media.com/site/wp-content/uploads/2009/11/Picture-1-291x300.png" alt="Picture 1" width="291" height="300" /></a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/how-to-use-jquary-lightbox-with-flash-geturl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to pass fashvars using AS3 and Swfobject</title>
		<link>http://newsourcemedia.com/blog/how-to-pass-fashvars-using-as3-and-swfobject/</link>
		<comments>http://newsourcemedia.com/blog/how-to-pass-fashvars-using-as3-and-swfobject/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 03:18:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=609</guid>
		<description><![CDATA[Swfobject has become the most popular choice for embedding flash content on the web. They've made it extremely easy to pass variable (flashVars) in to flash using two type of syntax. Take a look at the example below: &#60;script type="text/javascript"&#62; &#8230; <a href="http://newsourcemedia.com/blog/how-to-pass-fashvars-using-as3-and-swfobject/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Swfobject has become the most popular choice for embedding flash content on the web. They've made it extremely easy to pass variable (flashVars) in to flash using two type of syntax. Take a look at the example below:

&lt;script type="text/javascript"&gt;

var flashvars = {};

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars);

&lt;/script&gt;]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/how-to-pass-fashvars-using-as3-and-swfobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 2 to 3 migration Help</title>
		<link>http://newsourcemedia.com/blog/actionscript-2-to-3-migration-help/</link>
		<comments>http://newsourcemedia.com/blog/actionscript-2-to-3-migration-help/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 14:55:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[update.]]></category>

		<guid isPermaLink="false">http://am3media.com/site/?p=317</guid>
		<description><![CDATA[Need help migrating over to the AS3 language. First thing you probably want to download is the "AS3 Migration Cookbook from Adobe. You can use it as a high-level intro to AS3 and a quick reference for executing frequent code &#8230; <a href="http://newsourcemedia.com/blog/actionscript-2-to-3-migration-help/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Need help migrating over to the AS3 language. First thing you probably want to download is the "AS3 Migration Cookbook from Adobe. You can use it as a high-level intro to AS3 and a quick reference for executing frequent code task. The guide covers four topics:<span id="more-317"></span>
<ul>
	<li> <strong>Introduction</strong>: Provides a high-level introduction to ActionScript 3</li>
	<li> <strong>Top misperceptions</strong>: Dispels some of the top misperceptions around ActionScript 3</li>
	<li> <strong>Top benefits</strong>: Lists some of the top benefits of ActionScript 3</li>
	<li> <strong>Migration cookbook</strong>: Shows how to do common tasks in ActionScript 3 (see Figure 1)</li>
</ul>
<h4>Download the guide:<a class="icon pdf-file" href="http://www.adobe.com/devnet/actionscript/articles/as3_migration_cookbook/as3_migration_cookbook.pdf" target="_blank">
ActionScript 3 migration cookbook</a> <span class="stamp-fileinfo">(PDF, 600K)</span></h4>
A second place for a more detailed breakdown of what's changed is located on Adobe flash docs.

ActionScript® 3 Migration Reference
<a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html?migration.html&amp;all-classes.html" target="_blank">adobe.com/go/as2toas3</a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/actionscript-2-to-3-migration-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to validate Flash absolute url paths</title>
		<link>http://newsourcemedia.com/blog/how-to-validate-flash-absolute-url-paths/</link>
		<comments>http://newsourcemedia.com/blog/how-to-validate-flash-absolute-url-paths/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 15:50:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String Manipulation]]></category>
		<category><![CDATA[Workarounds]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=583</guid>
		<description><![CDATA[You may want to dynamically change the way your flash file behaves based on where it's hosted. To do so, you should utilize the "_url" variable to obtain the absolute path of your flash file. Actionscript 2: var path = &#8230; <a href="http://newsourcemedia.com/blog/how-to-validate-flash-absolute-url-paths/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[You may want to dynamically change the way your flash file behaves based on where it's hosted. To do so, you should utilize the  "_url" variable to obtain the absolute path of your flash file.<span id="more-583"></span>

Actionscript 2:

var path = _root._url;
trace (path);
// here's how to validate if the flash file is running locally off line.
trace (_root._url.substr(0,7));
if(_root._url.substr(0,7)=="file://"){
trace("running offline");
}
]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/how-to-validate-flash-absolute-url-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MC Tweener Add Glow Filter</title>
		<link>http://newsourcemedia.com/blog/mc-tweener-add-glow-filter/</link>
		<comments>http://newsourcemedia.com/blog/mc-tweener-add-glow-filter/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:43:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=578</guid>
		<description><![CDATA[If you are using the latest SVN version of Tweener (AS3), you can get the GlowFilter with Tweener to work. Here's the code sample assuming you have a movie clip named "box" on the stage. Most important thing here is &#8230; <a href="http://newsourcemedia.com/blog/mc-tweener-add-glow-filter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[If you are using the latest SVN version of Tweener (AS3), you can get the GlowFilter with Tweener to work. Here's the code sample assuming you have a movie clip named "box" on the stage.
<span id="more-578"></span>

Most important thing here is to make sure that you initiate the shortcut:
FilterShortcuts.init();

<pre lang="actionscript">// Import Filters
import flash.filters.*;
// Import Tweener
import caurina.transitions.Tweener;
// Import Tweener propertie shortcuts
import caurina.transitions.properties.FilterShortcuts;
// *** Very Importaint *** : Initialize shortcuts
FilterShortcuts.init();

var glowIn:GlowFilter = new GlowFilter(0x9A1A06,0.8,10,10,2,2);
var glowOut:GlowFilter = new GlowFilter(0x9A1A06,0,10,10,2,2);

box.addEventListener (MouseEvent.MOUSE_OVER, onOver);
box.addEventListener (MouseEvent.MOUSE_OUT, onOut);

function onOver (m:MouseEvent):void {
	Tweener.addTween (m.currentTarget, {_filter:glowIn, time:1});
}

function onOut (m:MouseEvent):void {
	Tweener.addTween (m.currentTarget, {_filter:glowOut, time:1});
}</pre>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/mc-tweener-add-glow-filter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create Empty MovieClip Dynamically in AS3</title>
		<link>http://newsourcemedia.com/blog/create-empty-movieclip-in-as3/</link>
		<comments>http://newsourcemedia.com/blog/create-empty-movieclip-in-as3/#comments</comments>
		<pubDate>Tue, 19 May 2009 14:03:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=571</guid>
		<description><![CDATA[Here is how to dynamically create a movie clip in ActionScript 3 using the MovieClip class First you have to declare the movie clip: var myMC:MovieCLip = new MovieClip(); Than you have to add it to the stage using addChild: &#8230; <a href="http://newsourcemedia.com/blog/create-empty-movieclip-in-as3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here is how to dynamically create a movie clip in ActionScript 3 using the MovieClip class<span id="more-571"></span>

First you have to declare the movie clip:
var myMC:MovieCLip = new MovieClip();

Than you have to add it to the stage using addChild:
addChild(myMC);

You can create MovieClips, Sprites, and Objects by calling the word new

Here is an example of the AS2 syntax:
<pre lang="actionscript">var myMC:MovieClip = _root.createEmptyMovieClip("mc1", _root.getNextHighestDepth());</pre>



But for AS3, remember that after declaring your MovieClip it remains in memory and won't be visible on stage until you call addChild(YOUR_MOVIE_CLIP_NAME)

Here is the AS3 example with property settings:

<pre lang="actionscript">var myMC:MovieClip = new MovieClip();
myMC.x = 50;
myMC.y = 50;
myMC.name = "mc1";

addChild(myMC);</pre>
]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/create-empty-movieclip-in-as3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Preloaders in AS3</title>
		<link>http://newsourcemedia.com/blog/preloaders-in-as3/</link>
		<comments>http://newsourcemedia.com/blog/preloaders-in-as3/#comments</comments>
		<pubDate>Thu, 14 May 2009 19:10:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=560</guid>
		<description><![CDATA[Here are a few way to create a preloader in flash actionscript 3 One way is to set two event listeners on the statge for PROGRESS and COMPLETE. import flash.display.*; stop(); this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, preloaderFunc); function preloaderFunc (event:ProgressEvent):void { var pcent:Number=event.bytesLoaded/event.bytesTotal*100; &#8230; <a href="http://newsourcemedia.com/blog/preloaders-in-as3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here are a few way to create a preloader in flash actionscript 3<span id="more-560"></span>

One way is to set two event listeners on the statge for PROGRESS and COMPLETE.

<pre lang="actionscript">import flash.display.*;
stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, preloaderFunc);
function preloaderFunc (event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
preloader_mc.txt.text=int(pcent)+"%";
}
this.loaderInfo.addEventListener (Event.COMPLETE, playFrame);
function playFrame (e:Event):void {
play ();
}</pre>
A second method would be to use the Enter Frame event like the onEnterFrame for as2.

<pre lang="actionscript">addEventListener(Event.ENTER_FRAME, preloader);
function preloader(event:Event) :void {
	var bytestotal = stage.loaderInfo.bytesTotal;
	var bytesloaded = stage.loaderInfo.bytesLoaded;
	var pctLoaded:int = bytesloaded * 100 / bytestotal;
	preloader_mc.txt.text = String(pctLoaded) + "%";
	if (bytesloaded >= bytestotal) {
		removeEventListener(Event.ENTER_FRAME, preloader);
		play();
	}
}
}</pre>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/preloaders-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
