<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Flash, ActionScript, Flash SEO</title>
	
	<link>http://flash.sikotiko.com</link>
	<description>Lessons, ideas, solved problems</description>
	<lastBuildDate>Mon, 15 Feb 2010 16:13:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/FlashActionscriptFlashSeo" /><feedburner:info uri="flashactionscriptflashseo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Taking the SEOmoz SEO quiz</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/28tcGG8qrQI/</link>
		<comments>http://flash.sikotiko.com/2010/02/10/taking-seomoz-seo-quiz/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:30:31 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=122</guid>
		<description><![CDATA[50% Take the quiz at SEO mozI knew I&#8217;ll have 50%. I have so much to learn yet.
]]></description>
			<content:encoded><![CDATA[<p><a style="text-decoration: none; display: block; width: 241px; height: 108px; background: url(http://www.seomoz.org/css/images/quiz/badges/the_seo_quiz_badge_f.gif) repeat scroll 0% 0% transparent; border: 3px solid #efefef; position: relative;" href="http://www.seomoz.org/"><span style="position: absolute; top: 2px; left: 77px; color: #feedae; font-size: 12px; font-family: Arial,serif; letter-spacing: -0.05em; display: block;">50% </span><span style="position: absolute; bottom: 7px; right: 87px; color: #ffffff; font-size: 12px; font-family: Arial,serif; display: block;">Take the quiz at SEO moz</span></a>I knew I&#8217;ll have 50%. I have so much to learn yet.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2010%2F02%2F10%2Ftaking-seomoz-seo-quiz%2F&amp;linkname=Taking%20the%20SEOmoz%20SEO%20quiz"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/28tcGG8qrQI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2010/02/10/taking-seomoz-seo-quiz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2010/02/10/taking-seomoz-seo-quiz/</feedburner:origLink></item>
		<item>
		<title>[AS3] Event.ENTER_FRAME strange behaviour</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/34eNOHqJOzA/</link>
		<comments>http://flash.sikotiko.com/2009/10/11/as3-event-enterframe-strange-behaviour/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:19:55 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Experiments]]></category>
		<category><![CDATA[Problems]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=116</guid>
		<description><![CDATA[Have you ever tried in ActionScript 3 this:

this.addEventListener&#40;Event.ENTER_FRAME, cpF1&#41;;
this.addEventListener&#40;Event.ENTER_FRAME, cpF2&#41;;
&#160;
function cpF1&#40;e:Event&#41;:void&#123;
trace&#40;&#34;cpF1&#34;&#41;
&#125;
function cpF2&#40;e:Event&#41;:void&#123;
trace&#40;&#34;cpF2&#34;&#41;
&#125;

Don&#8217;t expect to have traces like &#8220;cpF2&#8243; only. You&#8217;ll have &#8220;cpF1 cpF2&#8243; traced on every frame. This is a very hard to find mistake, if you expect an object to have only one onEnterFrame listener but you add another.
]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried in ActionScript 3 this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, cpF1<span style="color: #000000;">&#41;</span>;
<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>, cpF2<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> cpF1<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;cpF1&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span> cpF2<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;cpF2&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Don&#8217;t expect to have traces like &#8220;cpF2&#8243; only. You&#8217;ll have &#8220;cpF1 cpF2&#8243; traced on every frame. This is a very hard to find mistake, if you expect an object to have only one onEnterFrame listener but you add another.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F10%2F11%2Fas3-event-enterframe-strange-behaviour%2F&amp;linkname=%5BAS3%5D%20Event.ENTER_FRAME%20strange%20behaviour"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/34eNOHqJOzA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/10/11/as3-event-enterframe-strange-behaviour/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/10/11/as3-event-enterframe-strange-behaviour/</feedburner:origLink></item>
		<item>
		<title>Moving from ActionScript 2 to ActionScript 3 troubles</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/WI9oCe6o8Rc/</link>
		<comments>http://flash.sikotiko.com/2009/07/06/moving-from-actionscript-2-to-actionscript-3-troubles/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 10:35:43 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[linkage identifier]]></category>
		<category><![CDATA[syntax error]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=114</guid>
		<description><![CDATA[1086: Syntax error: expecting semicolon before line
Have you ever seen this error, when trying to move your fla from AS2 to AS3:
&#8220;Location: tempInit, Line 2   Description: 1086: Syntax error: expecting semicolon before line.&#8221;
In my case the problem was that I had a movieclip with a Linkage identifier in my AS2 file that contained space in [...]]]></description>
			<content:encoded><![CDATA[<h2>1086: Syntax error: expecting semicolon before line</h2>
<p>Have you ever seen this error, when trying to move your fla from AS2 to AS3:</p>
<p>&#8220;<span style="text-decoration: underline;">Location:</span> tempInit, Line 2   <span style="text-decoration: underline;">Description:</span> 1086: Syntax error: expecting semicolon before line.&#8221;</p>
<p>In my case the problem was that I had a movieclip with a Linkage identifier in my AS2 file that contained space in the name. When I moved to AS3 all my Linkage identifiers were converted to class names and when I tried to compile my AS3 flash file I got this error above.</p>
<p>So be careful when you name your linkage identifiers. Better use &#8220;camel case&#8221; instead of using spaces. This will help you move your AS2 fla file to AS3 fla file without seeing this error.</p>
<p>Happy coding!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F07%2F06%2Fmoving-from-actionscript-2-to-actionscript-3-troubles%2F&amp;linkname=Moving%20from%20ActionScript%202%20to%20ActionScript%203%20troubles"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/WI9oCe6o8Rc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/07/06/moving-from-actionscript-2-to-actionscript-3-troubles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/07/06/moving-from-actionscript-2-to-actionscript-3-troubles/</feedburner:origLink></item>
		<item>
		<title>[AS3] Be careful with Shape tweens above buttons</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/tsF3L2thrSs/</link>
		<comments>http://flash.sikotiko.com/2009/07/03/as3-be-careful-with-shape-tweens-above-buttons/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:39:41 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[shape tween]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=112</guid>
		<description><![CDATA[If you use a standart timeline animation with a shape tween above a button and you want to call a function that sets the events for the button from a frame &#8211; put the call to the function after the shape tween is over. If the shape tween is over the button, the shape receives [...]]]></description>
			<content:encoded><![CDATA[<p>If you use a standart timeline animation with a shape tween above a button and you want to call a function that sets the events for the button from a frame &#8211; put the call to the function after the shape tween is over. If the shape tween is over the button, the shape receives the Mouse events and the button won&#8217;t work.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F07%2F03%2Fas3-be-careful-with-shape-tweens-above-buttons%2F&amp;linkname=%5BAS3%5D%20Be%20careful%20with%20Shape%20tweens%20above%20buttons"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/tsF3L2thrSs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/07/03/as3-be-careful-with-shape-tweens-above-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/07/03/as3-be-careful-with-shape-tweens-above-buttons/</feedburner:origLink></item>
		<item>
		<title>[AS3] Skinning Flash Components – Part II</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/lV3WAX1euBM/</link>
		<comments>http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/#comments</comments>
		<pubDate>Tue, 05 May 2009 20:33:03 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[skinning]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=97</guid>
		<description><![CDATA[Skinning Slider Component
In a comment on my previous post [AS3] Skinning Flash Components I was asked to show how to change the size of the thumb of the Slider component. After some experiments with the component here is the way it can be done:

import fl.controls.Slider;
&#160;
var s:Slider = new Slider&#40;&#41;;
s.move&#40;10,10&#41;;
s.setSize&#40;500,300&#41;;
/*s.setStyle(&#34;thumbUpSkin&#34;, SliderThumbCustomSkin);
s.setStyle(&#34;thumbDownSkin&#34;, SliderThumbCustomSkin);
s.setStyle(&#34;thumbOverSkin&#34;, SliderThumbCustomSkin);*/
s.maximum = 100;
s.minimum = [...]]]></description>
			<content:encoded><![CDATA[<h2>Skinning Slider Component</h2>
<p>In a comment on my previous post <a href="http://flash.sikotiko.com/2009/01/21/as3-skinning-flash-components/" target="_self">[AS3] Skinning Flash Components</a> I was asked to show how to change the size of the thumb of the Slider component. After some experiments with the component here is the way it can be done:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> fl.controls.Slider;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> s<span style="color: #000000; font-weight: bold;">:</span>Slider = <span style="color: #0033ff; font-weight: bold;">new</span> Slider<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
s.move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span>,<span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>;
s.setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">500</span>,<span style="color: #000000; font-weight:bold;">300</span><span style="color: #000000;">&#41;</span>;
<span style="color: #3f5fbf;">/*s.setStyle(&quot;thumbUpSkin&quot;, SliderThumbCustomSkin);
s.setStyle(&quot;thumbDownSkin&quot;, SliderThumbCustomSkin);
s.setStyle(&quot;thumbOverSkin&quot;, SliderThumbCustomSkin);*/</span>
s.maximum = <span style="color: #000000; font-weight:bold;">100</span>;
s.minimum = <span style="color: #000000; font-weight:bold;">0</span>;
s.tickInterval = <span style="color: #000000; font-weight:bold;">5</span>;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span>;
s.<span style="color: #004993;">getChildAt</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span>;
s.<span style="color: #004993;">getChildAt</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">100</span>;</pre></div></div>

<p>With the code above I found that<span id="more-97"></span> the thumb of the <strong>Slider component</strong> is positioned at index 1 and can be reached by s.getChildAt(1) (where <strong>s</strong> is the instance of the Slider component). Then you can easily change its properties like Width, Height, etc.</p>
<p>Here is the list of the styles that can be used for skinning a Slider component:</p>
<p><span style="text-decoration: underline;"><strong>Slider component styles</strong></span></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">sliderTrackDisabledSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">sliderTrackSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">thumbDisabledSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">thumbDownSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">thumbOverSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">thumbUpSkin</span></strong></p>
<p style="padding-left: 30px;"><strong><span class="signatureLink">tickSkin</span></strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F05%2F05%2Fas3-skinning-slider-component%2F&amp;linkname=%5BAS3%5D%20Skinning%20Flash%20Components%20%26%238211%3B%20Part%20II"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/lV3WAX1euBM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/</feedburner:origLink></item>
		<item>
		<title>Flash Player 10: Strange Artifacts</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/tJbyoyDq6Xc/</link>
		<comments>http://flash.sikotiko.com/2009/05/02/flash-player-10-strange-artifacts/#comments</comments>
		<pubDate>Sat, 02 May 2009 11:31:58 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[artifacts]]></category>
		<category><![CDATA[blend mode overlay]]></category>
		<category><![CDATA[flash player 10]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=88</guid>
		<description><![CDATA[Using PNG in a MovieClip with Blend mode set to Overlay causes strange artifacts in Flash player 10
As you can see in the flash demo below, in Flash player 10 the  left image has strange artifacts while in the right image there are no artifacts.
I used Alpha: 99% for the Movie clip with the PNG [...]]]></description>
			<content:encoded><![CDATA[<h2>Using PNG in a MovieClip with Blend mode set to Overlay causes strange artifacts in Flash player 10</h2>
<p>As you can see in the flash demo below, in Flash player 10 the  left image has strange artifacts while in the right image there are no artifacts.</p>
<p>I used Alpha: 99% for the Movie clip with the PNG and the artifacts were gone. I&#8217;m not sure what causes the artifacts in FP10 and if this solution is the right one, but it worked for me.</p>
<p>Here is the demo flash:<span id="more-88"></span></p>
<p><script type="text/javascript" src="http://flash.sikotiko.com/wp-content/plugins/pb-embedflash/js/swfobject.js"></script><span class="embededflash" id="swfidde3486899d2190c4399d025596f2c7e3"><small>(Please open the article to see the flash file or player.)</small></span><script type="text/javascript">
				var flashvars = {}; var params = {}; var attributes = {};params.allowfullscreen = "true"; params.allowscriptaccess = "always";
				swfobject.embedSWF("http://flash.sikotiko.com/wp-content/uploads/2009/05/fp10_artifacts.swf","swfidde3486899d2190c4399d025596f2c7e3","550","400","9.0.0","http://flash.sikotiko.com/wp-content/plugins/pb-embedflash/swf/expressInstall.swf",flashvars,params,attributes);
		</script></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F05%2F02%2Fflash-player-10-strange-artifacts%2F&amp;linkname=Flash%20Player%2010%3A%20Strange%20Artifacts"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/tJbyoyDq6Xc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/05/02/flash-player-10-strange-artifacts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/05/02/flash-player-10-strange-artifacts/</feedburner:origLink></item>
		<item>
		<title>[AS3] Code snippets: Useful number methods</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/lbupp7ETUJ8/</link>
		<comments>http://flash.sikotiko.com/2009/04/23/as3-number-methods/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:50:58 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Code snippets]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[toFixed]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=82</guid>
		<description><![CDATA[Recently I was asked if I know how to show a number with a fixed number of digits after the decimal point. Here is how it can be done:

var num:Number = 12.3456;
trace&#40;num.toFixed&#40;2&#41;&#41;;// =&#62; 12.34

ATTENTION: This method toFixed returns String. If you want to have a Number after using this method you should use casting or:

var [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was asked if I know how to show a number with a fixed number of digits after the decimal point. Here is how it can be done:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> num<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">12.3456</span>;
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>num.<span style="color: #004993;">toFixed</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<span style="color: #009900;">// =&gt; 12.34</span></pre></div></div>

<p><strong>ATTENTION:</strong> This method <em><strong>toFixed</strong></em> returns String. If you want to have a Number after using this method you should use casting or:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> num<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">12.3456</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> num2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Number</span><span style="color: #000000;">&#40;</span>num.<span style="color: #004993;">toFixed</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #009900;">// =&gt; returns Number not String</span></pre></div></div>

<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F04%2F23%2Fas3-number-methods%2F&amp;linkname=%5BAS3%5D%20Code%20snippets%3A%20Useful%20number%20methods"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/lbupp7ETUJ8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/04/23/as3-number-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/04/23/as3-number-methods/</feedburner:origLink></item>
		<item>
		<title>[AS3] Scaling Sprite Containing TextField – Problem</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/NdiVns8eT2I/</link>
		<comments>http://flash.sikotiko.com/2009/02/04/as3-scaling-sprite-containing-textfield-problem/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:09:11 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[scaling textfield]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=60</guid>
		<description><![CDATA[Today I run into this strange problem while trying to scale a Sprite containing dynamic TextField. As you can see in the flash demo below, when you scale the Sprite the TextField retains its position in the Sprite container.
(Please open the article to see the flash file or player.)
This is the code that I use [...]]]></description>
			<content:encoded><![CDATA[<p>Today I run into this strange problem while trying to scale a Sprite containing dynamic TextField. As you can see in the flash demo below, when you scale the Sprite the TextField retains its position in the Sprite container.</p>
<p><object type="application/x-shockwave-flash" data="http://flash.sikotiko.com/wp-content/uploads/2009/02/textfieldscaleproblem.swf" width="550" height="200" class="embededflash"><param name="movie" value="http://flash.sikotiko.com/wp-content/uploads/2009/02/textfieldscaleproblem.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p>This is the code that I use for scaling:<span id="more-60"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> testTxt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = btn.<span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;labelTxt&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span>
<span style="color: #004993;">TextField</span>;
testTxt.<span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span>.<span style="color: #004993;">LEFT</span>;
testTxt.<span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;SCALE SPRITE+TXT&quot;</span>;
testTxt.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">4</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> bg<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = btn.<span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;bg&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Sprite</span>;
bg.<span style="color: #004993;">width</span> = testTxt.<span style="color: #004993;">width</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">8</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> orig<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> txt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = orig.<span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;labelTxt&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">TextField</span>;
txt.<span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span>.<span style="color: #004993;">LEFT</span>;
txt.<span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;SCALE SPRITE+TXT&quot;</span>;
txt.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">4</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> bg2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = orig.<span style="color: #004993;">getChildByName</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;bg&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Sprite</span>;
bg2.<span style="color: #004993;">width</span> = txt.<span style="color: #004993;">width</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">8</span>;
orig.<span style="color: #004993;">x</span> = btn.<span style="color: #004993;">x</span>;
orig.<span style="color: #004993;">y</span> = btn.<span style="color: #004993;">y</span> <span style="color: #000000; font-weight: bold;">+</span> btn.<span style="color: #004993;">height</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #000000; font-weight:bold;">4</span>;
&nbsp;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>orig<span style="color: #000000;">&#41;</span>;
&nbsp;
btn.<span style="color: #004993;">scaleX</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000; font-weight: bold;">/</span>btn.<span style="color: #004993;">width</span>;</pre></div></div>

<p>And THE SOLUTION is to use <strong>GridFitType.NONE</strong> for the <strong>gridFitType property</strong> of the TextField. The default value of the gridFitType property is GridFitType.PIXEL, which forces the text field to position according to the grid.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F02%2F04%2Fas3-scaling-sprite-containing-textfield-problem%2F&amp;linkname=%5BAS3%5D%20Scaling%20Sprite%20Containing%20TextField%20%26%238211%3B%20Problem"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/NdiVns8eT2I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/02/04/as3-scaling-sprite-containing-textfield-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/02/04/as3-scaling-sprite-containing-textfield-problem/</feedburner:origLink></item>
		<item>
		<title>[AS3] Skinning Flash Components</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/0RbVZCLDBsI/</link>
		<comments>http://flash.sikotiko.com/2009/01/21/as3-skinning-flash-components/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 13:50:55 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[flash component]]></category>
		<category><![CDATA[skinning]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=39</guid>
		<description><![CDATA[You can easily skin a Flash component using only ActionScript using component&#8217;s method setStyle() providing as parameters:

the name of the style and
your class that you want to use as the skin.

Here is the list of the styles that can be used for skinning a component:

ComboBox component styles
cellRenderer
disabledSkin
downArrowDisabledSkin
downArrowDownSkin
downArrowOverSkin
downArrowUpSkin
downSkin
thumbArrowUpSkin
thumbDisabledSkin
thumbDownSkin
thumbIcon
thumbOverSkin
trackDisabledSkin
trackDownSkin
trackOverSkin
trackUpSkin
upArrowDisabledSkin
upArrowOverSkin
upArrowUpSkin
upSkin
Information for any of the above styles of the [...]]]></description>
			<content:encoded><![CDATA[<p>You can easily skin a Flash component using only ActionScript using component&#8217;s method setStyle() providing as parameters:</p>
<ol>
<li>the name of the style and</li>
<li>your class that you want to use as the skin.</li>
</ol>
<p>Here is the list of the styles that can be used for skinning a component:<br />
<span id="more-39"></span><br />
<span style="text-decoration: underline;"><strong>ComboBox component styles</strong></span></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">cellRenderer</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">disabledSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">downArrowDisabledSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">downArrowDownSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">downArrowOverSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">downArrowUpSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">downSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">thumbArrowUpSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">thumbDisabledSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">thumbDownSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">thumbIcon</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">thumbOverSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">trackDisabledSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">trackDownSkin</span></em></strong></p>
<div class="summarySignature" style="padding-left: 30px;"><strong><em><span class="signatureLink">trackOverSkin</span></em></strong></div>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">trackUpSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">upArrowDisabledSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">upArrowOverSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">upArrowUpSkin</span></em></strong></p>
<p style="padding-left: 30px;"><strong><em><span class="signatureLink">upSkin</span></em></strong></p>
<p>Information for any of the above styles of the ComboBox component can be found in the Flash Help for the ComboBox class.</p>
<p>The code for skinning is:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">myComboBox.<span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;upArrowUpSkin&quot;</span>, CustomUpArrowUpSkin<span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>Where <em>CustomUpArowUpSkin</em> is the class of your custom upArrow skin for Up state of the up arrow button.</p>
<p><span class="signatureLink">to be continued&#8230;</span><strong><em><span class="signatureLink"><br />
</span></em></strong></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F01%2F21%2Fas3-skinning-flash-components%2F&amp;linkname=%5BAS3%5D%20Skinning%20Flash%20Components"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/0RbVZCLDBsI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/01/21/as3-skinning-flash-components/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/01/21/as3-skinning-flash-components/</feedburner:origLink></item>
		<item>
		<title>SWFAddress Subversion Repository</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/6WeUNNBLFEQ/</link>
		<comments>http://flash.sikotiko.com/2008/11/03/swfaddress-subversion-repository/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 09:42:30 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[SWFAddress]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=34</guid>
		<description><![CDATA[After searching and trying a lot of different URLs for the Subversion repository of SWFAddress I finally found the right URL for my Tortoise SVN client. The address is:
https://swfaddress.svn.sourceforge.net/svnroot/swfaddress
]]></description>
			<content:encoded><![CDATA[<p>After searching and trying a lot of different URLs for the Subversion repository of SWFAddress I finally found the right URL for my Tortoise SVN client. The address is:</p>
<p>https://swfaddress.svn.sourceforge.net/svnroot/swfaddress</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fflash.sikotiko.com%2F2008%2F11%2F03%2Fswfaddress-subversion-repository%2F&amp;linkname=SWFAddress%20Subversion%20Repository"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/6WeUNNBLFEQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2008/11/03/swfaddress-subversion-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2008/11/03/swfaddress-subversion-repository/</feedburner:origLink></item>
	</channel>
</rss>
