﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><ttl>60</ttl><title>THEACTIONSCRIPTER.COM</title><link>http://theactionscripter.com</link><lastBuildDate>Wed, 10 Mar 2010 16:52:09 GMT</lastBuildDate><pubDate>Wed, 10 Mar 2010 16:52:09 GMT</pubDate><language>en</language><copyright /><itunes:subtitle> </itunes:subtitle><itunes:author /><itunes:summary /><description /><itunes:owner><itunes:name /><itunes:email>mcreati@gmail.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:category text="Arts" /><item><title>Free Gucci Mane Flash Game</title><link>http://theactionscripter.com/2010/01/18/free-gucci-mane-flash-game.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>I recently developed &lt;a target="_blank" href="http://djx-rated.com/free_gucci.aspx"&gt;a shooting game featuring Atlanta based rapper Gucci Mane&lt;/a&gt;.&amp;nbsp; Gucci Mane has recently been sent to jail and his fans want him out.&amp;nbsp; The games objective is to help free Gucci Mane from jail.&amp;nbsp; Try and freeze the guards with the ice gun (burrrrr) allowing enough time for Gucci to make his escape.&amp;nbsp; There is a helicopter waiting for the rapper at the end of the game to bring him to freedom.&amp;nbsp; &lt;br&gt;&lt;br&gt;This game is an example on how you can use Flash and other online tools to market and promote music artists on the internet in a new hip way.&amp;nbsp; Simply add a sound track to the game and have their fans rock out while saving Gucci Mane.&lt;br&gt;&lt;br&gt;
&lt;embed src="http://www.djx-rated.com/flash/free_gucci/freeGucci.swf" type="application/x-shockwave-flash" height="475" width="650"&gt;</description><category>Projects</category><category>Flash</category><comments>http://theactionscripter.com/2010/01/18/free-gucci-mane-flash-game.aspx#Comments</comments><guid isPermaLink="false">b6ef0410-d76a-4b82-ac1e-8c40b6bc8498</guid><pubDate>Mon, 18 Jan 2010 16:51:00 GMT</pubDate></item><item><title>Flash Input Text Font Issue with Mask</title><link>http://theactionscripter.com/2010/01/05/flash-input-text-font-issue-with-mask.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Why isn't my text showing up when I enter it in an input textfield?&amp;nbsp; That was the question I was asking myself.&amp;nbsp; Usually when I have an input text field the text shows up perfectly when keying inside it.&amp;nbsp; The reason I was having this issue was because my textbox was under a mask.&lt;br&gt;&lt;br&gt;&lt;strong&gt;The solution:&lt;/strong&gt;&lt;br&gt;Embed the characters needed like you would a dynamic text field.&amp;nbsp; That's it.&lt;br&gt;</description><category>Imports</category><category>Flash</category><comments>http://theactionscripter.com/2010/01/05/flash-input-text-font-issue-with-mask.aspx#Comments</comments><guid isPermaLink="false">091bac99-6d84-44a8-90c9-d31792ba275c</guid><pubDate>Tue, 05 Jan 2010 15:00:00 GMT</pubDate></item><item><title>Developing Flash on a Mac vs PC</title><link>http://theactionscripter.com/2009/12/29/developing-flash-on-a-mac-vs-pc.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;img src="http://images.quickblogcast.com/3/2/7/2/6/85366-162723/MacPC.jpg?a=72"&gt;&lt;div&gt; &lt;/div&gt;&lt;br&gt;&lt;br&gt;I finally did it.&amp;nbsp; I made the jump from PC to MAC.&amp;nbsp; I have been PC my entire life and figured it was about time to try out the MAC after all those commercials. I got a new MacBook Pro and it looks cool.&amp;nbsp; The keyboard lights up and everything.&amp;nbsp; &lt;br&gt;&lt;br&gt;I have been developing Flash on it for the past month and came to some conclusions.&amp;nbsp; The Apple learning curve will take me longer than I thought.&amp;nbsp; I guess this is because I lived and died by the shortcuts on my PC.&amp;nbsp; I adjusted to the basic Apple differences quite easily, like using the command instead of the control key. The Flash shortcuts are what have been killing me.&amp;nbsp; F5 and F6 were not creating new keyframes or blank keyframes for me.&amp;nbsp; It took me a while to realize this was because you have to hit fn and F5 or F6.&amp;nbsp; So I had to do it the long way insert &amp;gt; timeline &amp;gt; Frame.&lt;br&gt;&lt;br&gt;I guess part of my struggles is because I have a laptop with limited keys.&amp;nbsp; Not having a home and end key has also slowed me down.&amp;nbsp; &lt;br&gt;&lt;br&gt;The positive thing about the switch has defiantly been dealing with my creative partners.&amp;nbsp; This was the main reason I made the switch.&amp;nbsp; Since the creative assets I get were designed by people using MACs a lot of time I would have missing fonts or fonts that were not compatible.&amp;nbsp; This doesn't happen anymore.&lt;br&gt;&lt;br&gt;All in all I have mixed emotions on the switch from PC to MAC dealing with Flash development.&amp;nbsp; I have to say I miss my PC, like it more and much much faster with it, but time will tell.&amp;nbsp; Maybe in 3 months I will be singing a different tune when I know my MAC inside and out but until then I have to say,&amp;nbsp; "I am still a PC guy!".&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><category>General</category><comments>http://theactionscripter.com/2009/12/29/developing-flash-on-a-mac-vs-pc.aspx#Comments</comments><guid isPermaLink="false">58e65d43-c453-4647-9b7e-286edcf7c8e3</guid><pubDate>Tue, 29 Dec 2009 16:53:00 GMT</pubDate></item><item><title>AS 3 Hide/Show Mouse Cursor</title><link>http://theactionscripter.com/2009/12/15/as-3-hideshow-mouse-cursor.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;P&gt;Need the ActionScript 3 code to hide or show the mouse cursor?&amp;nbsp; Take a look below at it.&amp;nbsp; It is real simple.&amp;nbsp; Make sure you include the import.&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="TEXT-DECORATION: underline"&gt;&lt;STRONG&gt;Syntax:&lt;BR&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN style="COLOR: #336699"&gt;import flash.ui.Mouse;&lt;BR&gt;&lt;BR&gt;Mouse.hide();&lt;BR&gt;Mosue.show(); &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;</description><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/12/15/as-3-hideshow-mouse-cursor.aspx#Comments</comments><guid isPermaLink="false">a5efb294-29d2-4444-a638-5274a9ad5f61</guid><pubDate>Tue, 15 Dec 2009 21:42:00 GMT</pubDate></item><item><title>Where Can I Find Omniture Flash ActionSource Documentation?</title><link>http://theactionscripter.com/2009/11/06/where-can-i-find-omniture-flash-actionsource-documentation.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>You can find a version of Omniture's ActionSource documentation for Flash/ActionScript implementation at the link below.&lt;BR&gt;&lt;BR&gt;&lt;A href="http://issuu.com/carismarie/docs/omniture_flash_documentation" target=_blank&gt;http://issuu.com/carismarie/docs/omniture_flash_documentation&lt;/A&gt;</description><category>Omniture</category><comments>http://theactionscripter.com/2009/11/06/where-can-i-find-omniture-flash-actionsource-documentation.aspx#Comments</comments><guid isPermaLink="false">15885523-9c24-42e7-9f38-9450963e177c</guid><pubDate>Fri, 06 Nov 2009 15:01:00 GMT</pubDate></item><item><title>Flash Making Extra Omniture Tracking Calls</title><link>http://theactionscripter.com/2009/11/05/flash-making-extra-omniture-tracking-calls.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;IMG src="http://images.quickblogcast.com/3/2/7/2/6/85366-162723/Omniture.gif?a=67"&gt;&lt;BR&gt;&lt;BR&gt;Omniture tracking can be very tricky inside of Flash.&amp;nbsp; Omniture's introduction of ActionSource has made it easier to implement the tracking calls but there is still a number of issues that happens if not explained correctly.&amp;nbsp; One common mistake is extra tracking calls.&amp;nbsp; A lot of times when users click on different trackable components inside Flash&amp;nbsp;the Omniture call gets triggered more than once.&amp;nbsp; This is becasue the Omniture call variables are not being nulled out after it is being fired.&lt;BR&gt;&lt;BR&gt;When implementing Omniture on normal web pages each link click usually sends the user to a new http page.&amp;nbsp; Since the user is being sent to a new http page the Omniture variables are automatically refreshed because of the new http headers.&amp;nbsp; In Flash you have to refresh them on your own.&lt;BR&gt;&lt;BR&gt;The example below shows an Omniture call in Flash via ActionSource that is not getting refreshed after the call is executed.&amp;nbsp; Since the variables are not being reset after the call, it is being saved in the ActionSource object and is being sent again on each of the next calls.&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;&lt;SPAN style="COLOR: #336699"&gt;s.campaign = "Campaign Name";&lt;BR&gt;s.pageName = "About Us";&lt;BR&gt;s.eVar17 = "value";&lt;BR&gt;s.track();&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR&gt;&lt;BR&gt;Since campaign, pageName and eVar17 have not been nulled out after s.track() was called, everytime s.track() gets called in the future it will continue to pass campaign, pageName and eVar17.&amp;nbsp; This will give you incorrect stats.&amp;nbsp; You may think you have gotten more hits related to that campaign or eVar than&amp;nbsp; you really did.&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;Solution:&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;s.campaign = "Campaign Name";&lt;BR&gt;s.pageName = "About Us";&lt;BR&gt;s.eVar17 = "value";&lt;BR&gt;s.track();&lt;BR&gt;s.campaign = null;&lt;BR&gt;s.pageName = null;&lt;BR&gt;s.eVar17 = null;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;That is it.&amp;nbsp; Just null out the vars after you make a tracking call and you are good to go.&lt;BR&gt;&lt;BR&gt;Let me know.&lt;/CODE&gt;</description><category>Omniture</category><comments>http://theactionscripter.com/2009/11/05/flash-making-extra-omniture-tracking-calls.aspx#Comments</comments><guid isPermaLink="false">2782a22b-8b61-4c2e-b360-9d6d63f6d0d4</guid><pubDate>Thu, 05 Nov 2009 15:40:00 GMT</pubDate></item><item><title>Connecting to a Web Service in Flex</title><link>http://theactionscripter.com/2009/11/04/connecting-to-a-web-service-in-flex.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>I figured it was time to dive into Flex and see how different it is than Flash.&amp;nbsp; There are some differences but not too many.&amp;nbsp; For my first Flex project I decided to make an app to look up stock quotes.&amp;nbsp; I figured this would be a good place to start because communicating with web services is a common task for ActionScript projects.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;In this example I used &lt;A href="http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&amp;amp;WSID=9" target=_blank&gt;WebserviceX.NET Stock Quote free web service&lt;/A&gt;.&amp;nbsp; To connect to the webservice you have to instantiate a Web Service instance in your MXML file.&amp;nbsp; Below is example syntax to instantiate a WebService in your MXML.&lt;BR&gt;&lt;BR&gt;&lt;TEXTAREA rows=5 cols=70&gt;&amp;lt;mx:WebService id="service" wsdl="http://www.webservicex.net/stockquote.asmx?WSDL" fault="onFault(event)" result="onResult(event)"&amp;gt;&amp;lt;/mx:WebService&amp;gt;&lt;/TEXTAREA&gt; &lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;id : &lt;/STRONG&gt;name to identify your web service&lt;BR&gt;&lt;STRONG&gt;wsdl :&lt;/STRONG&gt; web service address&lt;BR&gt;&lt;STRONG&gt;fault : &lt;/STRONG&gt;function to handle faults when connecting to your web service&lt;BR&gt;&lt;STRONG&gt;result :&lt;/STRONG&gt; function that will be called after connecting to your web service&lt;BR&gt;&lt;BR&gt;Now it is time to make the call to your web service.&amp;nbsp; The following code gets executed after the user clicks the search button.&amp;nbsp; This code lives inside the same MXML page inside an &amp;lt;mx:Script&amp;gt; tag.&lt;BR&gt;&lt;BR&gt;&lt;TEXTAREA rows=5 cols=70&gt;private function search():void{     searching = true;     service.GetQuote.send(txtSymbol.text);}&lt;/TEXTAREA&gt;&lt;BR&gt;&lt;BR&gt;We are almost done.&amp;nbsp; All we need to do now is display the results.&amp;nbsp; This code also lives inside the same MXML page inside an &amp;lt;mx:Script&amp;gt; tag.&lt;BR&gt;&lt;BR&gt;&lt;TEXTAREA rows=10 cols=70&gt;private function onResult(event:ResultEvent):void{     searching = false;     var stock:Object = XML(event.result);				     var str:String = "Symbol: \t" + stock.Stock.Symbol.toString();     str += "\n Last: \t" + stock.Stock.Last.toString();     str += "\n Date: \t" + stock.Stock.Date.toString();     str += "\n Change: \t" + stock.Stock.Change.toString();     str += "\n Open: \t" + stock.Stock.Open.toString();     str += "\n High: \t" + stock.Stock.High.toString();     str += "\n Low: \t" + stock.Stock.Low.toString();     str += "\n Previous Close: \t" + stock.Stock.PreviousClose.toString();     str += "\n Percentage Change: \t" + stock.Stock.PercentageChange.toString();     output.text = str;				}&lt;/TEXTAREA&gt;&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Take a look at the demo below. &lt;/STRONG&gt;Currently we are getting a security issue because this demo is trying to access data from another domain.&amp;nbsp; The solution is to add a crossdomain.xml in the root directory of the server but I do not have access to the blog's server root directory.&amp;nbsp; Please download the source MXML file and add it to your Flex project to see it running.&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/webservicedemo.swf width=320 height=227 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt;&lt;BR&gt;&lt;BR&gt;&lt;A href="http://theactionscripter.com/files/3/2/7/2/6/85366-162723/webservicedemo.zip"&gt;Source MXML File&lt;/A&gt;&lt;BR&gt;</description><category>Demo</category><category>Flex</category><comments>http://theactionscripter.com/2009/11/04/connecting-to-a-web-service-in-flex.aspx#Comments</comments><guid isPermaLink="false">4dcacab3-1c21-4c8a-8187-ac97066dbd28</guid><pubDate>Wed, 04 Nov 2009 20:49:00 GMT</pubDate></item><item><title>Reading a RSS/Twitter feed with ActionScript 3</title><link>http://theactionscripter.com/2009/11/03/reading-a-rsstwitter-feed-with-actionscript-3.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Everyone is tweeting!&amp;nbsp; Time to tweet in style.&amp;nbsp; Below is an example I made that reads in an RSS or Twitter feed and displays the entries inside a Flash component.&lt;BR&gt;&lt;BR&gt;Try out this Flash RSS Feed Reader by entering your blog or Twitter's RSS feed below then clicking go.&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/starterkit.swf width=425 height=400 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;How it works?&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;It is&lt;/FONT&gt; pretty simple to create your own Flash Twitter reader with ActionScript 3.&amp;nbsp; RSS feeds are read in similiar to XML.&amp;nbsp; After you read in the RSS feed loop through the RSS' channel items to display each entry.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;Let me know your thoughts or if you need to see any code.</description><category>Demo</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/11/03/reading-a-rsstwitter-feed-with-actionscript-3.aspx#Comments</comments><guid isPermaLink="false">39ef45fd-29d4-44b6-b85b-1a6f8985ddbd</guid><pubDate>Tue, 03 Nov 2009 18:28:00 GMT</pubDate></item><item><title>AS3 :: Get all Children MovieClips</title><link>http://theactionscripter.com/2009/10/09/as3--get-all-children-movieclips.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>It is easy in ActionScript 3 to get all the chlidren instances of a MovieClip.&amp;nbsp; Take a look at the AS3 code below for help.&amp;nbsp; &lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;for (var i:uint = 0; i &amp;lt; mcMain.numChildren; i++){&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;txtOutput.htmlText += 'name:' + mcMain.getChildAt(i).name;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;txtOutput.htmlText += '\t type:' + typeof (mcMain.getChildAt(i));&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;txtOutput.htmlText += '\t' + mcMain.getChildAt(i);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;txtOutput.htmlText += ""; &lt;BR&gt;}&lt;BR&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The above code uses a for loop, to loop through the total number of children in mcMain.&amp;nbsp; &lt;CODE&gt;mcMain.getChildAt(i)&lt;/CODE&gt; will get the reference to the child instance.&amp;nbsp; By tacking &lt;CODE&gt;.name&lt;/CODE&gt; to the end of &lt;CODE&gt;mcMain.getChildAt(i)&lt;/CODE&gt; you can get the name of the child object.&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/childrenMovieClips.swf width=550 height=225 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;&lt;A href="http://theactionscripter.com/files/3/2/7/2/6/85366-162723/childrenMovieClips.fla"&gt;download source&lt;/A&gt;&lt;/P&gt;</description><category>Demo</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/10/09/as3--get-all-children-movieclips.aspx#Comments</comments><guid isPermaLink="false">b02e14f4-9674-41c6-9dc6-658dbc89e56a</guid><pubDate>Fri, 09 Oct 2009 15:14:00 GMT</pubDate></item><item><title>AS3 MOUSE_OVER VS. ROLL_OVER</title><link>http://theactionscripter.com/2009/09/29/as3-mouse_over-vs-roll_over.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>A lot of Flash developers I come across have an issue with mouse actions when MovieClips are embedded inside other MovieClips.&amp;nbsp; AS3 has multiple ways to handle embedded mouse actions&amp;nbsp;within MovieClips.&amp;nbsp; The two main ways are MOUSE_OVER and ROLL_OVER.&amp;nbsp; They sound the same but have slight differences.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;MOUSE_OVER&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;MOUSE_OVER will be triggered when you first rollover the main MovieClip.&amp;nbsp; It will also be triggered every time you rollover any MovieClip inside the main MovieClip.&amp;nbsp; This can get dangerous when you have additional buttons inside the main MovieClip with MOUSE_OUT functionality.&amp;nbsp; Be careful because your MOUSE_OVER functionality will be called multiple times.&lt;BR&gt;&lt;BR&gt;* If you set the main MovieClip to mouseChildren = false, it will prevent the MOUSE_OVER action being triggered when you mouse over any embedded MovieClip.&amp;nbsp; Be careful though because you will not be able to add any mouse actions to those embedded MovieClips.&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=3&gt;&lt;STRONG&gt;ROLL_OVER&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;ROLL_OVER will be triggered when you first rollover the main MovieClip.&amp;nbsp; It will not be triggered again until you roll out of the main MovieClip and back over it.&amp;nbsp; You can rollover as many embedded MovieClips as you want without it being triggered multiple times.&amp;nbsp; ROLL_OVER is best for when you have embedded MovieClips with mouse actions.&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/mouse_over.swf width=550 height=400 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt;</description><category>Demo</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/09/29/as3-mouse_over-vs-roll_over.aspx#Comments</comments><guid isPermaLink="false">da7f67ab-183a-420d-9322-581b3ca038bb</guid><pubDate>Tue, 29 Sep 2009 17:46:00 GMT</pubDate></item><item><title>Best Practices for Flash AS3</title><link>http://theactionscripter.com/2009/08/24/best-practices-for-flash-as3.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Take a look at this article I wrote on &lt;A href="http://www.bukisa.com/articles/137106_flash-and-actionscript-3-best-practices-to-improve-performance" target=_blank&gt;Bukisa&lt;/A&gt;.&amp;nbsp; In this article you will read about best practices for developing a website in Flash.&amp;nbsp; Learn different tricks to make your site perform better, load faster, and maintain easier.&lt;BR&gt;&lt;BR&gt;&lt;A href="http://www.bukisa.com/articles/137106_flash-and-actionscript-3-best-practices-to-improve-performance" target=_blank&gt;http://www.bukisa.com/articles/137106_flash-and-actionscript-3-best-practices-to-improve-performance&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-5469459714653711";
google_ad_width = 200;
google_ad_height = 200;
google_ad_format = "200x200_as";
google_ad_slot = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;</description><category>Best Practices</category><category>General</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/08/24/best-practices-for-flash-as3.aspx#Comments</comments><guid isPermaLink="false">af020ca6-b55a-4b98-b1e1-f9189ce3bbc8</guid><pubDate>Mon, 24 Aug 2009 13:48:00 GMT</pubDate></item><item><title>Align Text with ActionScript 3 - Center AS3 Text</title><link>http://theactionscripter.com/2009/08/18/align-text-with-actionscript-3--center-as3-text.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;P&gt;&lt;STRONG&gt;Imports needed to align your Flash text in AS3.&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;import flash.text.TextField;&lt;BR&gt;import flash.text.TextFieldAutoSize;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;Alignments you can do with your text:&lt;/STRONG&gt; 
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;SPAN class=searchhilite&gt;TextFieldAutoSize&lt;/SPAN&gt;.LEFT&lt;BR&gt;&lt;SPAN class=searchhilite&gt;TextFieldAutoSize&lt;/SPAN&gt;.RIGHT&lt;BR&gt;&lt;SPAN class=searchhilite&gt;TextFieldAutoSize&lt;/SPAN&gt;.CENTER&lt;BR&gt;&lt;SPAN class=searchhilite&gt;TextFieldAutoSize.NONE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;Syntax needed to align your dynamic text in AS3.&lt;/STRONG&gt; 
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;_textField.autoSize = TextFieldAutoSize.LEFT;&lt;BR&gt;_textField.text = "Hello World!&amp;nbsp; This is my text.";&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;Make sure that you assign the autoSize before you set the text. If you set the text first the alignment will not work correclty.</description><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/08/18/align-text-with-actionscript-3--center-as3-text.aspx#Comments</comments><guid isPermaLink="false">711389d2-01e9-4631-b485-42bdaac93b91</guid><pubDate>Tue, 18 Aug 2009 17:46:00 GMT</pubDate></item><item><title>Disable the right click menu in Flash AS3</title><link>http://theactionscripter.com/2009/08/03/disable-the-right-click-menu-in-flash-as3.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Gain control of your Flash Movie. Do not let users right click and zoom in on it if you do not want them to. Take a look below at the AS3 code to prevent users from right clicking on your Flash experience. 
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;
&lt;P&gt;stage.showDefaultContextMenu = false;&lt;/P&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;Example Flash Movie with Right Click Functionality Disabled.&lt;BR&gt;&lt;BR&gt;&lt;/STRONG&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/rightclickmenu.swf width=300 height=200 type=application/x-shockwave-flash&gt;&lt;/EMBED&gt;</description><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/08/03/disable-the-right-click-menu-in-flash-as3.aspx#Comments</comments><guid isPermaLink="false">297bf58a-a06c-45fa-84dc-9080fb18cd9d</guid><pubDate>Mon, 03 Aug 2009 16:01:00 GMT</pubDate></item><item><title>Error #2044: Unhandled ioError: With .DAE file in Papervision</title><link>http://theactionscripter.com/2009/07/27/error-2044-unhandled-ioerror-with-dae-file-in-papervision.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;P&gt;I got the classic &amp;nbsp;#2044 Error today when I moved a project I have been working on from local to test environment.&amp;nbsp; Usually you receive this error because the file doesn't exist.&amp;nbsp; That wasn't the case for me.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;I am building a papervision project and the file that was causing the #2044 error was the Collida .DAE file.&amp;nbsp; Since the test environment was IIS, I had to add the .DAE file the the MIME Map.&amp;nbsp; After I added the .DAE file to the MIME Map I was able to load my Collida .DAE into my PaperVision project.&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Add the following code to your Web.config file&lt;/STRONG&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&amp;lt;system.webServer&amp;gt;&lt;BR&gt;&amp;lt;staticContent&amp;gt;&lt;BR&gt;&amp;lt;mimeMap fileExtension=".dae" mimeType="application/octet-stream"/&amp;gt;&lt;BR&gt;&amp;lt;/staticContent&amp;gt;&lt;BR&gt;&amp;lt;/system.webServer&amp;gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;This is is more common when trying to dynamically load a .flv file on the server.</description><category>Flash Error</category><category>Papervision</category><comments>http://theactionscripter.com/2009/07/27/error-2044-unhandled-ioerror-with-dae-file-in-papervision.aspx#Comments</comments><guid isPermaLink="false">5f720f6f-97fa-45b2-b626-ba0939335efc</guid><pubDate>Mon, 27 Jul 2009 13:50:00 GMT</pubDate></item><item><title>AS3 Tint MovieClip</title><link>http://theactionscripter.com/2009/07/16/as3-tint-movieclip.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Here is how to tint a MovieClip in Flash via AS3.&lt;BR&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;var c:Color = new Color();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="COLOR: #3f9030"&gt;//Create a color object&lt;/SPAN&gt;&lt;BR&gt;c.setTint(Math.random() * 0xffffff, 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="COLOR: #3f9030"&gt;//Set tint to a random color&lt;/SPAN&gt;&lt;BR&gt;mcObject.transform.colorTransform = c;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="COLOR: #3f9030"&gt;//Apply tint to your MovieClip&lt;/SPAN&gt;&lt;BR&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;STRONG&gt;Below is an example of randomly changing a MovieClip's tint with ActionScript 3&lt;/STRONG&gt;&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/tinting.swf width=400 height=325 type=application/x-shockwave-flash&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;A href="http://theactionscripter.com/files/3/2/7/2/6/85366-162723/tinting.zip"&gt;Source Code&lt;/A&gt;</description><category>Demo</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/07/16/as3-tint-movieclip.aspx#Comments</comments><guid isPermaLink="false">b79f2e50-e47d-4fd0-b76d-823096ede688</guid><pubDate>Thu, 16 Jul 2009 19:15:00 GMT</pubDate></item><item><title>Going from ActionScript 3 back to ActionScript 2 isn't fun</title><link>http://theactionscripter.com/2009/07/15/going-from-actionscript-3-back-to-actionscript-2-isnt-fun.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>I remember when I first made the jump from ActionScript 2 to ActionScript 3.&amp;nbsp; I wasn't excited about the switch at the time.&amp;nbsp; I remember always asking myself why did they change this, I can't I do this anymore but after my first project I was happy I made the switch.&amp;nbsp; AS3 made coding easier.&amp;nbsp; I write less code in AS3 than I needed to do in AS2 with the exception of &lt;A href="http://theactionscripter.com/2009/05/30/open-url-in-actionscript-3.aspx"&gt;getURL&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;I've been doing AS3 straight for the past year now.&amp;nbsp;&amp;nbsp;Every time I have to start a new ActionScript project I always write it in AS3 for obvious reasons.&amp;nbsp; The challenge is when someone asked me to write a project that had to be done in AS2.&amp;nbsp; No AS3!&amp;nbsp; Sure, I thought, no problem. I have been coding for years in ActionScript 2 but wow how quickly I forget the differences.&amp;nbsp; I felt I had to reteach myself some of the basics.&lt;BR&gt;&lt;BR&gt;The project should have only took me 4-6 hours but ended up taking me 8-10 hours.&amp;nbsp; If I could have wrote it in AS3 it probably would have took me just 2 hours.&amp;nbsp; Making the jump back seemed more difficult than the jump forward.&amp;nbsp; Some of the simplest actions I just forgot.&amp;nbsp; For example, assigning actions to buttons from my class.&amp;nbsp; It took me a moment to remember that inside the onClick function there is no true reference to the class, so I had to set one before I declared the action.&amp;nbsp; Simple code like that, which I used to write like clockwork, I just forgot.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;In all the change back was frustrating but kind of funny.&amp;nbsp; Seems like I need to do some more small AS2 projects on my own to stay sharp but if I have to do anything important I'm writing it in good new ActionScript 3.</description><category>General</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/07/15/going-from-actionscript-3-back-to-actionscript-2-isnt-fun.aspx#Comments</comments><guid isPermaLink="false">78430e44-bd28-4607-a9af-1c8743aed187</guid><pubDate>Wed, 15 Jul 2009 13:39:00 GMT</pubDate></item><item><title>Omniture Media Tracking in Flash with ActionScript 3</title><link>http://theactionscripter.com/2009/07/13/omniture-media-tracking-in-flash-with-actionscript-4.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Omniture made media&amp;nbsp;tracking easy with their creation of ActionSource.&amp;nbsp; You no longer have to make external javascript calls for when the video starts, pauses, plays, ends, etc.&amp;nbsp; The ActionSource object handles it all.&amp;nbsp; ActionSource is pretty easy to learn and implement but I do feel Omniture in general and the way they handle their reporting is quite ambiguous.&amp;nbsp; I'm lucky I just have to do the implementation and not the naming strategy for the tracking.&amp;nbsp; I am told what props, eVars, events, etc to implement and can easily fire them correctly because of ActionSource.&lt;BR&gt;&lt;BR&gt;First you will have to setup your ActionScource object as usual.&amp;nbsp; Then you can track your videos by using the below function calls.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;When the video get initialized you need to call the media open function.&lt;BR&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #3f9030"&gt;&lt;CODE&gt;// mediaName :: Name of video&lt;BR&gt;// mediaLength :: Duration of video&lt;BR&gt;// mediaPlayName :: Name of video player&lt;BR&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;s.Media.open(mediaName, mediaLength, mediaPlayerName); &lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;When the video play listener is called you need to call the media play function.&lt;BR&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;s.Media.play(mediaName, mediaOffset); &lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;When a user pauses the video or it stops you need to call the media stop function.&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;s.Media.stop(mediaName, mediaOffset);&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;When the video is finished you need to call the media close function.&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;s.Media.close(mediaName);&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;The tracking call to Omniture doesn't get fired until the close() function gets called.&lt;BR&gt;&lt;BR&gt;&lt;FONT size=4&gt;
&lt;P&gt;&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "pub-5469459714653711";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_slot = "";
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;&lt;/P&gt;Omniture Media Tracking Reports&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;How many people watched a video 
&lt;LI&gt;How long a user stayed on a video 
&lt;LI&gt;What sections of the video a user watched 
&lt;LI&gt;When the user exited the video 
&lt;LI&gt;Videos By Player 
&lt;LI&gt;If you have Omniture tracking throughout your site, you can also know the user flow before and after the video&lt;/LI&gt;&lt;/UL&gt;&lt;/CODE&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description><category>Omniture</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/07/13/omniture-media-tracking-in-flash-with-actionscript-4.aspx#Comments</comments><guid isPermaLink="false">59884edb-f200-4950-ad61-d519438eca0a</guid><pubDate>Mon, 13 Jul 2009 18:23:39 GMT</pubDate></item><item><title>AS3 ? Conditional</title><link>http://theactionscripter.com/2009/06/29/as3--conditional.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>You can use the following line of code as a if/else statement. &lt;BR&gt;&lt;BR&gt;x = ( a == b ) ? y : z; &lt;BR&gt;&lt;BR&gt;if(a==b){&lt;BR&gt;x=y&lt;BR&gt;}&lt;BR&gt;else{&lt;BR&gt;x=z;&lt;BR&gt;}</description><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/06/29/as3--conditional.aspx#Comments</comments><guid isPermaLink="false">b39e3cc2-0444-4e19-a03e-0c7e4879bf2a</guid><pubDate>Mon, 29 Jun 2009 18:16:00 GMT</pubDate></item><item><title>Cool Papervision and Web Cam Video</title><link>http://theactionscripter.com/2009/06/15/cool-papervision-and-web-cam-video.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>Take a look at this cool Papervision and Web Cam video I found on YouTube. You can hold your virtual creations in your hands now.&lt;BR&gt;&lt;BR&gt;&lt;EMBED src=http://www.youtube.com/v/vS6r5d-0hZ8&amp;amp;hl=en&amp;amp;fs=1&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00 width=560 height=340 type=application/x-shockwave-flash allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/EMBED&gt;</description><category>ActionScript 3</category><category>Papervision</category><comments>http://theactionscripter.com/2009/06/15/cool-papervision-and-web-cam-video.aspx#Comments</comments><guid isPermaLink="false">0b6dae47-83cc-4f9c-90fb-ed3d23a1f231</guid><pubDate>Mon, 15 Jun 2009 14:23:00 GMT</pubDate></item><item><title>Shared Object / Flash Cookie in ActionScript 3</title><link>http://theactionscripter.com/2009/06/10/shared-object--flash-cookie-in-actionscript-3.aspx?ref=rss</link><dc:creator>Mike</dc:creator><description>&lt;P&gt;Sometimes you may want to store information on the clients machine.&amp;nbsp; You can do this using a Flash Shared Object, this is basically a Flash Cookie.&amp;nbsp; A Flash Cookie is actually a little better than a normal cookie.&amp;nbsp; Flash Cookies are a little more secure and cannot be deleted like your browser's normal cookies are.&amp;nbsp; Very few users know how to delete them, which is pretty cool for us Flash Developers.&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Here is how you set a SharedObject in ActionScript 3:&lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;var __so:SharedObject = SharedObject.getLocal("theactionscripter"); &lt;BR&gt;__so.data.favoriteWebsite = "http://www.theactionscripter.com"; &lt;BR&gt;__so.data.userId = "123";&lt;BR&gt;__so.flush();&amp;nbsp;&lt;SPAN style="COLOR: #3f9030"&gt;&lt;CODE&gt;//Immediately writes a locally persistent shared object to a local file.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;STRONG&gt;Here is how you get a SharedObject in ActionScript 3: &lt;/STRONG&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;var __so:SharedObject = SharedObject.getLocal("theactionscripter"); &lt;BR&gt;trace(__so.data.favoriteWebsite ); &lt;SPAN style="COLOR: #3f9030"&gt;//http://www.theactionscripter.com&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;STRONG&gt;Here is how you clear a SharedObject in ActionScript 3: &lt;/STRONG&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;SPAN style="COLOR: #336699"&gt;&lt;CODE&gt;var __so:SharedObject = SharedObject.getLocal("theactionscripter"); &lt;BR&gt;__so.clear();&lt;/CODE&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;BR&gt;&lt;STRONG&gt;View Demo of SharedObject.&lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;&lt;EMBED src=http://theactionscripter.com/files/3/2/7/2/6/85366-162723/shared_objects.swf width=550 height=250 type=application/x-shockwave-flash&gt;&lt;BR&gt;&lt;BR&gt;&lt;A href="http://theactionscripter.com/files/3/2/7/2/6/85366-162723/shared_objects.zip"&gt;Source Code&lt;/A&gt;&lt;BR&gt;&lt;/EMBED&gt;</description><category>Demo</category><category>ActionScript 3</category><comments>http://theactionscripter.com/2009/06/10/shared-object--flash-cookie-in-actionscript-3.aspx#Comments</comments><guid isPermaLink="false">90a0adfa-7ae4-480f-ba6e-5364c5d617db</guid><pubDate>Wed, 10 Jun 2009 15:38:00 GMT</pubDate></item></channel></rss>