<?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>nichmekof.com &#187; Actionscript 3</title>
	<atom:link href="http://blog.nichmekof.com/category/actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nichmekof.com</link>
	<description>Learnings of a flash developer</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:07:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>HTML and CSS in Flash</title>
		<link>http://blog.nichmekof.com/2009/05/html-and-css-in-flash/</link>
		<comments>http://blog.nichmekof.com/2009/05/html-and-css-in-flash/#comments</comments>
		<pubDate>Fri, 01 May 2009 16:20:12 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=157</guid>
		<description><![CDATA[I have just uploaded my slides on HTML and CSS in Flash from the last A-SFUG meeting I hope you find it useful.]]></description>
			<content:encoded><![CDATA[<p>I have just uploaded my slides on <a href="http://nichmekof.com/a-sfug/cssinflash/">HTML and CSS in Flash</a> from the last <a href="http://a-sfug.com">A-SFUG</a> meeting</p>
<p>I hope you find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2009/05/html-and-css-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use SharedObject to save data on users computer</title>
		<link>http://blog.nichmekof.com/2009/03/use-sharedobject-to-save-data-on-users-computer/</link>
		<comments>http://blog.nichmekof.com/2009/03/use-sharedobject-to-save-data-on-users-computer/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 07:57:59 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=116</guid>
		<description><![CDATA[By using SharedObject you are able to store limited amounts of data on a user's computer. It's works in the same kind of way that your browser stores cookies. However there are some limitations with using this. Sometimes swf files may not be able to write the data, and the data can sometimes be deleted [...]]]></description>
			<content:encoded><![CDATA[<p>By using SharedObject you are able to store limited amounts of data on a user's computer. It's works in the same kind of way that your browser stores cookies. However there are some limitations with using this. Sometimes swf files may not be able to write the data, and the data can sometimes be deleted without your knowledge. Users can set their own limits on how much space flash player can use on their computer. When they lower the amount of disk space available, some local shared objects might get removed.</p>
<p>I'll show you a basic example of using SharedObject. We will have an input text field on stage and a button that will save the text in the text field.</p>
<p>Create a new AS3 Document and put a text field on stage and give it an instance name. I will call mine <strong>theText_txt</strong>.<br />
Next make a button on stage and give it an instance name. I called mine <strong>save_btn</strong>.</p>
<p>Create a new layer in the main timeline and call it actions and lock it. Open up the actions panel and enter the following:</p>
<pre class="actionscript"><span style="color: #000000; font-weight: bold;">var</span> mySO:<span style="color: #0066CC;">SharedObject</span>;
mySO = <span style="color: #0066CC;">SharedObject</span>.<span style="color: #0066CC;">getLocal</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;myfirstSO&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>The first line creates the shared object. The second line gets a local shared object called <strong>myfirstSO</strong>. Nothing is stored in it at the moment but we will assign data to it shortly.</p>
<p>Now when we click the button we want to assign whatever text is in the text field to the shared object. In the actions panel enter:</p>
<pre class="actionscript">save_btn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, saveText<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> saveText<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
     mySO.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">myText</span> = theText_txt.<span style="color: #0066CC;">text</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>This has now assigned the text in the text field to a variable called <strong>myText</strong> in the SharedObject.</p>
<p>OK now that the text is saved we will want to populate the text field with that saved data when you open the swf again. In the actions panel enter the following.</p>
<pre class="actionscript"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>mySO.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">myText</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
     theText_txt.<span style="color: #0066CC;">text</span> = mySO.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">myText</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>This checks to see if there is any data in the myText variable in the SharedObject. If there is then it assigns that value to the text field.</p>
<p>Now test the movie. Enter some text in the text field and click your save button. Close the swf and test the movie again. You will see that the text you entered before is in the text field.</p>
<p>You can download the example here: <a href="http://blog.nichmekof.com/wp-content/uploads/2009/03/sharedobject.zip">SharedObject.zip</a></p>
<p>Hope this was helpful,<br />
Ed</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2009/03/use-sharedobject-to-save-data-on-users-computer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Instance names and code hinting &#8211; Tips &amp; Tricks</title>
		<link>http://blog.nichmekof.com/2009/03/instance-names-and-code-hinting-tips-tricks/</link>
		<comments>http://blog.nichmekof.com/2009/03/instance-names-and-code-hinting-tips-tricks/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 07:59:22 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code hinting]]></category>
		<category><![CDATA[instance names]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=103</guid>
		<description><![CDATA[When coding in actionscript sometimes it can be a pain that you don't get code hinting with objects that are on stage. A good way of overcoming this is to change the instance names of your objects (Movie Clips, Buttons, etc.) to have an underscore "_" then the abbreviated name of that object at the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-108" style="float:left;margin-right:10px;" title="code_hinting" src="http://blog.nichmekof.com/wp-content/uploads/2009/02/code_hinting.jpg" alt="code_hinting" width="382" height="190" />When coding in actionscript sometimes it can be a pain that you don't get code hinting with objects that are on stage. A good way of overcoming this is to change the instance names of your objects (Movie Clips, Buttons, etc.) to have an underscore <strong>"_"</strong> then the abbreviated name of that object at the end of the name.</p>
<p>For example, you may have a movie clip on stage called <strong>myMovieClip</strong>. Change the instance name to have an <strong>_mc</strong> at the end (<strong>myMovieClip_mc</strong>), and now in your actions panel type <strong>myMovieClip_mc</strong> and press period. You will now see all the code hinting for a movie clip popup (see image). This can save a whole heap of time when coding.</p>
<p>Here is a list of the different shortcuts that you can use to bring up the code hinting. Some of these are for AS2 but the rest will work with AS3.</p>
<table border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th width="128" valign="top">Object type</th>
<th width="116" valign="top">Variable suffix</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">Array</td>
<td valign="top">_array</td>
</tr>
<tr>
<td valign="top">Button</td>
<td valign="top">_btn</td>
</tr>
<tr>
<td valign="top">Camera</td>
<td valign="top">_cam</td>
</tr>
<tr>
<td valign="top">Color</td>
<td valign="top">_color</td>
</tr>
<tr>
<td valign="top">ContextMenu</td>
<td valign="top">_cm</td>
</tr>
<tr>
<td valign="top">ContextMenuItem</td>
<td valign="top">_cmi</td>
</tr>
<tr>
<td valign="top">Date</td>
<td valign="top">_date</td>
</tr>
<tr>
<td valign="top">Error</td>
<td valign="top">_err</td>
</tr>
<tr>
<td valign="top">LoadVars</td>
<td valign="top">_lv</td>
</tr>
<tr>
<td valign="top">LocalConnection</td>
<td valign="top">_lc</td>
</tr>
<tr>
<td valign="top">Microphone</td>
<td valign="top">_mic</td>
</tr>
<tr>
<td valign="top">MovieClip</td>
<td valign="top">_mc</td>
</tr>
<tr>
<td valign="top">MovieClipLoader</td>
<td valign="top">_mcl</td>
</tr>
<tr>
<td valign="top">PrintJob</td>
<td valign="top">_pj</td>
</tr>
<tr>
<td valign="top">NetConnection</td>
<td valign="top">_nc</td>
</tr>
<tr>
<td valign="top">NetStream</td>
<td valign="top">_ns</td>
</tr>
<tr>
<td valign="top">SharedObject</td>
<td valign="top">_so</td>
</tr>
<tr>
<td valign="top">Sound</td>
<td valign="top">_sound</td>
</tr>
<tr>
<td valign="top">String</td>
<td valign="top">_str</td>
</tr>
<tr>
<td valign="top">TextField</td>
<td valign="top">_txt</td>
</tr>
<tr>
<td valign="top">TextFormat</td>
<td valign="top">_fmt</td>
</tr>
<tr>
<td valign="top">Video</td>
<td valign="top">_video</td>
</tr>
<tr>
<td valign="top">XML</td>
<td valign="top">_xml</td>
</tr>
<tr>
<td valign="top">XMLNode</td>
<td valign="top">_xmlnode</td>
</tr>
<tr>
<td valign="top">XMLSocket</td>
<td valign="top">_xmlsocket</td>
</tr>
</tbody>
</table>
<p>I find that using this technique saves me a whole heap of time when programming.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2009/03/instance-names-and-code-hinting-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make a button from a MovieClip &#8211; Tips &amp; Tricks</title>
		<link>http://blog.nichmekof.com/2009/02/make-a-button-from-a-movieclip-tips-tricks/</link>
		<comments>http://blog.nichmekof.com/2009/02/make-a-button-from-a-movieclip-tips-tricks/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 10:00:59 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=95</guid>
		<description><![CDATA[In the first meeting of A-SFUG I showed a tip about creating the up, over and down states of a button using a movie clip. I thought that I should put it up here as a reference. An easy way of creating a button from a movie clip is to give the names of the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-101" style="margin-right:10px; float:left;" title="movieclipbtn" src="http://blog.nichmekof.com/wp-content/uploads/2009/02/movieclipbtn.png" alt="movieclipbtn" width="350" height="279" />In the first meeting of <a title="A-SFUG" href="http://www.a-sfug.com" target="_blank">A-SFUG</a> I showed a tip about creating the up, over and down states of a button using a movie clip. I thought that I should put it up here as a reference.</p>
<p>An easy way of creating a button from a movie clip is to give the names of the frames with the different states of the button "<strong>_up</strong>", "<strong>_over</strong>" and "<strong>_down</strong>".</p>
<p>Add a stop(); frame  on frame 1 of the movie clip. Then out on the main timeline, open the actions panel and write:</p>
<pre>myButton_btn.buttonMode = true;</pre>
<p>Just change <strong>myButton_btn</strong> to the instance name of your movieclip.</p>
<p>Now test the movie and roll over the button and It will now go to the over state. Press down on it and it will go to the down state.</p>
<p>So you do not need to write the code for on roll over, on mouse down and on roll out. Flash will automatically detect what you are wanting to do and do it for you.</p>
<p>Now you may be asking "Why should I do it this way? Why can't I just make it as a regular button?" Well you can still do it that way if you like, however the benefit of doing it this way is that a movie clip is more light weight then a button. This means that flash can run a bit faster.</p>
<p>Cheers,<br />
Ed</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2009/02/make-a-button-from-a-movieclip-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forget 25 lines. Try 140 Characters</title>
		<link>http://blog.nichmekof.com/2009/02/forget-25-lines-try-140-characters/</link>
		<comments>http://blog.nichmekof.com/2009/02/forget-25-lines-try-140-characters/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 09:24:24 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[competition]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=93</guid>
		<description><![CDATA[A while ago I talked about the 25 lines competition which is a contest to see who can make the most spectacular thing with only 25 lines of code. Today Grant Skinner has announced on his blog a competition called #tweetcoding. Basically the contest is to create the coolest thing you can in AS3, with  only [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I talked about the <a title="25 Lines" href="http://blog.nichmekof.com/2008/12/25lines-finalists/" target="_blank">25 lines competition</a> which is a contest to see who can make the most spectacular thing with only 25 lines of code. Today <a title="Grant Skinner" href="http://www.gskinner.com/blog" target="_blank">Grant Skinner</a> has announced on his blog a competition called <a title="#tweetcoding" href="http://www.gskinner.com/blog/archives/2009/02/tweetcoding_con.html" target="_blank">#tweetcoding</a>. Basically the contest is to create the coolest thing you can in AS3, with  only using 140 characters of code. If you enter you stand to win a copy of Flash CS4!</p>
<p><span style="color: #000000; text-decoration: none;">Details can be found here:<a style="text-decoration: none;" href="http://www.gskinner.com/blog/archives/2009/02/tweetcoding_con.html"> </a></span><span style="text-decoration: underline;"><a style="text-decoration: none;" href="http://www.gskinner.com/blog/archives/2009/02/tweetcoding_con.html">http://www.gskinner.com/blog/archives/2009/02/tweetcoding_con.html</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2009/02/forget-25-lines-try-140-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using addFrameScript</title>
		<link>http://blog.nichmekof.com/2008/12/using-addframescript/</link>
		<comments>http://blog.nichmekof.com/2008/12/using-addframescript/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 02:30:26 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=80</guid>
		<description><![CDATA[addFrameScript is a function that allows you to add actionscript to a specific frame (never would have guessed...). You need to pass in 2 parameters, the first is which frame you want to add the script on and the second is the function that you want to trigger on that frame. Now here is the [...]]]></description>
			<content:encoded><![CDATA[<p>addFrameScript is a function that allows you to add actionscript to a specific frame (never would have guessed...). You need to pass in 2 parameters, the first is which frame you want to add the script on and the second is the function that you want to trigger on that frame. Now here is the pain with it, the frames start at zero. So if you wanted to put a script on frame 10 you would reference it with :</p>
<pre>addFrameScript(9, myFunction);</pre>
<p>So it can be a little tricky at first, but once you remember how to reference the frames it can be a very handy little function.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2008/12/using-addframescript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>25lines finalists</title>
		<link>http://blog.nichmekof.com/2008/12/25lines-finalists/</link>
		<comments>http://blog.nichmekof.com/2008/12/25lines-finalists/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 02:10:20 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[cs4]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=76</guid>
		<description><![CDATA[Here are the finalists of the recent 25 lines competition. http://www.25lines.com/?page_id=139 They are really impressive. You are able to view the code for each entry as well.]]></description>
			<content:encoded><![CDATA[<p>Here are the finalists of the recent 25 lines competition.<br />
<a title="25lines finalists" href="http://www.25lines.com/?page_id=139" target="_blank">http://www.25lines.com/?page_id=139</a></p>
<p>They are really impressive. You are able to view the code for each entry as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2008/12/25lines-finalists/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Searching through arrays</title>
		<link>http://blog.nichmekof.com/2008/07/searching-through-arrays/</link>
		<comments>http://blog.nichmekof.com/2008/07/searching-through-arrays/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 08:22:24 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=11</guid>
		<description><![CDATA[This works in both actionscript 2 and actionscript 3. To search an array starting from the first position in the array we use: for &#40;var i:int = 0; i &#60; myArray.length; i++&#41; &#123; ... &#125; Where you would change myArray with the variable name of your array. But what if you wanted to search through [...]]]></description>
			<content:encoded><![CDATA[<p>This works in both actionscript 2 and actionscript 3.</p>
<p>To search an array starting from the first position in the array we use:</p>
<pre class="actionscript"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i &lt; myArray.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
   ...
<span style="color: #66cc66;">&#125;</span></pre>
<p>Where you would change myArray with the variable name of your array.</p>
<p>But what if you wanted to search through the array from the last item? Well the easiest way of doing this is by using:</p>
<pre class="actionscript"><span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i <span style="color: #b1b100;">in</span> myArray<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
   ...
<span style="color: #66cc66;">&#125;</span></pre>
<p>Now you know. And knowing is half the battle. - G.I. Joe</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2008/07/searching-through-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Holy Bible of Actionscript 3.0</title>
		<link>http://blog.nichmekof.com/2008/06/essential-actionscript-30/</link>
		<comments>http://blog.nichmekof.com/2008/06/essential-actionscript-30/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 04:51:11 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=10</guid>
		<description><![CDATA[Everyone should rush out and buy Essential Actionscript 3.0 by Colin Mook. It is a really great resource for actionscript programming with the new AS3 code. I actually managed to get this book free from Colin's Actionscript 3.0 From the Ground Up Tour when he came to Singapore. All I had to do was answer [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone should rush out and buy <a href="http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946" target="_blank">Essential Actionscript 3.0</a> by <a title="Colin Moock" href="http://www.moock.org/" target="_blank">Colin Mook</a>. It is a really great resource for actionscript programming with the new AS3 code. I actually managed to get this book free from Colin's Actionscript 3.0 From the Ground Up Tour when he came to Singapore. All I had to do was answer the question " can anyone name a text adventure game?" I called out "ZORK" and from that got a free book. Sometimes being a retro gamer pays off. I have had a good look through it and its really helpful for learning actionscript 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2008/06/essential-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scales in AS3</title>
		<link>http://blog.nichmekof.com/2008/05/scales-in-as3/</link>
		<comments>http://blog.nichmekof.com/2008/05/scales-in-as3/#comments</comments>
		<pubDate>Thu, 29 May 2008 03:07:56 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://blog.nichmekof.com/?p=8</guid>
		<description><![CDATA[In actionscript 3 the scales for alpha, x scale and y scale have changed. In actionscript 2 they were a percentage rage between 0 and 100. In actionscript 3 this has changed to a scale between 0 and 1. So if you are converting from AS2 just divide your scale by 100. Also the names [...]]]></description>
			<content:encoded><![CDATA[<p>In actionscript 3 the scales for alpha, x scale and y scale have changed. In actionscript 2 they were a percentage rage between 0 and 100. In actionscript 3 this has changed to a scale between 0 and 1. So if you are converting from AS2 just divide your scale by 100.</p>
<p>Also the names of these have changed. In AS2 they were</p>
<pre class="actionscript"><span style="color: #0066CC;">_xscale</span>
<span style="color: #0066CC;">_yscale</span>
<span style="color: #0066CC;">_alpha</span></pre>
<p>In AS3 this has changed to</p>
<pre class="actionscript">scaleX
scaleY
alpha</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.nichmekof.com/2008/05/scales-in-as3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

