<?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>Sat, 10 Sep 2011 21:17:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<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/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://flash.sikotiko.com/?pushpress=hub" /><item>
		<title>5 life lessons learned from FLV video</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/LBwredzNjpA/</link>
		<comments>http://flash.sikotiko.com/2011/08/30/5-life-lessons-learned-from-flv-video/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 22:06:44 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[even number]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[flv video]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=167</guid>
		<description><![CDATA[Have you ever run into this weird situation when you try to make a FLV video file with Adobe Media Encoder and when you try to resize it the encoder changes the dimensions you entered? No matter what you try you don&#8217;t get the desired dimensions. Once I was in this same situation when I [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever run into this weird situation when you try to make a FLV video file with Adobe Media Encoder and when you try to resize it the encoder changes the dimensions you entered? No matter what you try you don&#8217;t get the desired dimensions.</p>
<p>Once I was in this same situation when I found that:<span id="more-167"></span></p>
<ol>
<li>When you use export to FLV the codecs used support only even numbers for dimensions;</li>
<li>In fact, VP6 codec and some others suffer when their dimensions aren&#8217;t divisible by 16;</li>
<li>This causes the resultant FLV to have grey lines on top and bottom or on the left and right side;</li>
<li>You should keep that in mind and will have to make videos (that you&#8217;ll convert to FLV) using even numbers for their dimensions or &#8230;</li>
<li>Make your videos the desired dimensions and then convert them to F4V with Sorenson <a title="More about H.264 codec from Wikipedia" href="http://en.wikipedia.org/wiki/H.264" target="_blank">H.264</a> codec and keep their dimensions intact (but it&#8217;s better to use even numbers: divisable by 16 for the width and divisable by 8 for the height!).</li>
</ol>
<p>Hope these lessons help you make your life easier when working with FLV. Good luck!</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2011/05/31/some-experiments-with-colors/" rel="bookmark" class="wherego_title">Some experiments with colors</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2011%2F08%2F30%2F5-life-lessons-learned-from-flv-video%2F&amp;title=5%20life%20lessons%20learned%20from%20FLV%20video" id="wpa2a_2"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/LBwredzNjpA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2011/08/30/5-life-lessons-learned-from-flv-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2011/08/30/5-life-lessons-learned-from-flv-video/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=5-life-lessons-learned-from-flv-video</feedburner:origLink></item>
		<item>
		<title>Some experiments with colors</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/Exop0270W0w/</link>
		<comments>http://flash.sikotiko.com/2011/05/31/some-experiments-with-colors/#comments</comments>
		<pubDate>Tue, 31 May 2011 11:47:58 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Experiments]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=144</guid>
		<description><![CDATA[Experiment #1: I made a little experiment with a movie clip in black with alpha property set to 50%. I started to lay over the black movie clip copies of it and checked with the Eyedropper Tool when the color would become black (#000000). The result: I needed 8 clips to achieve it. Readers who [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Experiment #1</span>: I made a little experiment with a movie clip in black with alpha property set to 50%. I started to lay over the black movie clip copies of it and checked with the Eyedropper Tool when the color would become black (#000000).</p>
<p>The result: I needed 8 clips to achieve it.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2011/01/06/auto-kern-and-letter-spacing-problem/" rel="bookmark" class="wherego_title">Auto Kern and Letter Spacing Problem</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2011%2F05%2F31%2Fsome-experiments-with-colors%2F&amp;title=Some%20experiments%20with%20colors" id="wpa2a_4"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/Exop0270W0w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2011/05/31/some-experiments-with-colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2011/05/31/some-experiments-with-colors/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=some-experiments-with-colors</feedburner:origLink></item>
		<item>
		<title>Auto Kern and Letter Spacing Problem</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/tez_rvpMQB4/</link>
		<comments>http://flash.sikotiko.com/2011/01/06/auto-kern-and-letter-spacing-problem/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 00:41:52 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[Auto Kern]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[letter spacing]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[textField]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=139</guid>
		<description><![CDATA[Have you ever run into this situation: using a dynamic text field for a mask with some letter spacing other than 0 and checked Auto Kern checkbox applied to the text field, adding some string value to the &#8220;text&#8221; property of the text field and after exporting the flash movie for Flash Player 8 and [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever run into this situation: using a dynamic text field for a mask with some letter spacing other than 0 and checked Auto Kern checkbox applied to the text field, adding some string value to the &#8220;text&#8221; property of the text field and after exporting the flash movie for Flash Player 8 and ActionScript 2, you see that the text you expect to show in the text field is not showing and the text field seems like it is empty?</p>
<p>I had exactly the same problem recently and found what causes it. Actually when you have a dynamic text field with checked Auto Kern and/or using Letter Spacing other than 0, immediately after you assign any value to the &#8220;text&#8221; property of the text field the field just &#8220;disappears&#8221;. So if you want to use auto kerning and/or letter spacing with dynamic text fields and plan to export the flash movie for Flash Player 8, you&#8217;d better use the TextFormat&#8217;s property &#8220;letterSpacing&#8221; and &#8220;kerning&#8221; (set to &#8220;true&#8221; for Auto Kerning)  like in the example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> tf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">kerning</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">letterSpacing</span> = <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
myTextField<span style="color: #000066; font-weight: bold;">.</span>setNewTextFormat<span style="color: #000000;">&#40;</span>tf<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
myTextField<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Here goes the text&quot;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2010/10/09/using-armature-in-flash-cs4-part-one/" rel="bookmark" class="wherego_title">Using armature in Flash CS4 &#8211; part I</a></li><li><a href="" rel="bookmark" class="wherego_title"></a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2011%2F01%2F06%2Fauto-kern-and-letter-spacing-problem%2F&amp;title=Auto%20Kern%20and%20Letter%20Spacing%20Problem" id="wpa2a_6"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/tez_rvpMQB4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2011/01/06/auto-kern-and-letter-spacing-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2011/01/06/auto-kern-and-letter-spacing-problem/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=auto-kern-and-letter-spacing-problem</feedburner:origLink></item>
		<item>
		<title>Using armature in Flash CS4 – part I</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/Mkc_rFlnJak/</link>
		<comments>http://flash.sikotiko.com/2010/10/09/using-armature-in-flash-cs4-part-one/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 23:45:11 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Problems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[armature]]></category>
		<category><![CDATA[bone tool]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[inverse kinematics]]></category>
		<category><![CDATA[layer]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=131</guid>
		<description><![CDATA[Using armature in Flash CS4. Part I - some hints on how to work with Bone Tool, add/remove Poses, copy/paste Poses, name armature layers.]]></description>
			<content:encoded><![CDATA[<p>With the release of Flash CS4 Adobe added this really cool new tool called Bone Tool. With it you can make your animations more natural.</p>
<p>Here are some hints on:</p>
<ul>
<li>How to name armature layer &#8211; First, you can&#8217;t name the layer if it is locked. Second, you can&#8217;t use spaces (use underscore &#8220;_&#8221; instead) in the name and can&#8217;t use reserved words for a name.</li>
<li>How to Copy/Paste a Pose &#8211; The layer should be unlocked. Using right click on the frame with the pose to be copied, choose Copy Pose. Then go to the desired frame where you want to paste the Pose, right click and choose Insert Pose, then another click with the right mouse button and choose Paste Pose.</li>
</ul>
<p>to be continued&#8230;</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2010/07/30/my-first-website-made-with-gaia-framework/" rel="bookmark" class="wherego_title">My first website made with GAIA framework</a></li></ul></div><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/Mkc_rFlnJak" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2010/10/09/using-armature-in-flash-cs4-part-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2010/10/09/using-armature-in-flash-cs4-part-one/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-armature-in-flash-cs4-part-one</feedburner:origLink></item>
		<item>
		<title>My first website made with GAIA framework</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/R7Y48miG4es/</link>
		<comments>http://flash.sikotiko.com/2010/07/30/my-first-website-made-with-gaia-framework/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 08:55:25 +0000</pubDate>
		<dc:creator>SikoTiko</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://flash.sikotiko.com/?p=129</guid>
		<description><![CDATA[Here is a link to my first website I did with the GAIA framework: Advertising Displays from DPD BG Ltd Readers who viewed this page, also viewed:Taking the SEOmoz SEO quiz]]></description>
			<content:encoded><![CDATA[<p>Here is a link to my first website I did with the GAIA framework: <a title="DPD BG - Designing Advertising Displays" href="http://www.dpdbg.com/en/" target="_blank">Advertising Displays from DPD BG Ltd</a></p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2010/02/10/taking-seomoz-seo-quiz/" rel="bookmark" class="wherego_title">Taking the SEOmoz SEO quiz</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2010%2F07%2F30%2Fmy-first-website-made-with-gaia-framework%2F&amp;title=My%20first%20website%20made%20with%20GAIA%20framework" id="wpa2a_8"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/R7Y48miG4es" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2010/07/30/my-first-website-made-with-gaia-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2010/07/30/my-first-website-made-with-gaia-framework/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=my-first-website-made-with-gaia-framework</feedburner:origLink></item>
		<item>
		<title>Taking the SEOmoz SEO quiz</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/qU4uJF2teoA/</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. Readers who viewed this page, also viewed:[AS3] Event.ENTER_FRAME strange behaviour]]></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>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2009/10/11/as3-event-enterframe-strange-behaviour/" rel="bookmark" class="wherego_title">[AS3] Event.ENTER_FRAME strange behaviour</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2010%2F02%2F10%2Ftaking-seomoz-seo-quiz%2F&amp;title=Taking%20the%20SEOmoz%20SEO%20quiz" id="wpa2a_10"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/qU4uJF2teoA" 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/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=taking-seomoz-seo-quiz</feedburner:origLink></item>
		<item>
		<title>[AS3] Event.ENTER_FRAME strange behaviour</title>
		<link>http://feedproxy.google.com/~r/FlashActionscriptFlashSeo/~3/BDejdthAI6A/</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 [...]]]></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: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span> cpF1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ENTER_FRAME</span><span style="color: #000066; font-weight: bold;">,</span> cpF2<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> cpF1<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; 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: #000066; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000066; 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>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2009/07/06/moving-from-actionscript-2-to-actionscript-3-troubles/" rel="bookmark" class="wherego_title">Moving from ActionScript 2 to ActionScript 3 troubles</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F10%2F11%2Fas3-event-enterframe-strange-behaviour%2F&amp;title=%5BAS3%5D%20Event.ENTER_FRAME%20strange%20behaviour" id="wpa2a_12"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/BDejdthAI6A" 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>2</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/10/11/as3-event-enterframe-strange-behaviour/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=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/zQBEG2vfEQ8/</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[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[linkage identifier]]></category>
		<category><![CDATA[semicolon]]></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 ActionScript 2 to ActionScript 3: &#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 ActionScript [...]]]></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 ActionScript 2 to <a title="Articles for ActionScript 3" href="http://flash.sikotiko.com/tag/actionscript-3/">ActionScript 3</a>:</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 ActionScript 2 file that contained space in the name. When I moved to <a title="Articles for ActionScript 3" href="http://flash.sikotiko.com/tag/actionscript-3/">ActionScript 3</a> 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 ActionScript 2 fla file to <a title="Articles for ActionScript 3" href="http://flash.sikotiko.com/tag/actionscript-3/">ActionScript 3</a> fla file without seeing this error.</p>
<p>Happy coding!</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2009/07/03/as3-be-careful-with-shape-tweens-above-buttons/" rel="bookmark" class="wherego_title">[AS3] Be careful with Shape tweens above buttons</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F07%2F06%2Fmoving-from-actionscript-2-to-actionscript-3-troubles%2F&amp;title=Moving%20from%20ActionScript%202%20to%20ActionScript%203%20troubles" id="wpa2a_14"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/zQBEG2vfEQ8" 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/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=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/CXtConjPVgc/</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[as3]]></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 <span id="more-112"></span>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>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/" rel="bookmark" class="wherego_title">[AS3] Skinning Flash Components &#8211; Part II</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F07%2F03%2Fas3-be-careful-with-shape-tweens-above-buttons%2F&amp;title=%5BAS3%5D%20Be%20careful%20with%20Shape%20tweens%20above%20buttons" id="wpa2a_16"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/CXtConjPVgc" 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/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=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/eibdenW0oug/</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[as3]]></category>
		<category><![CDATA[flash 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;; [...]]]></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 <a title="Articles for Flash components" href="http://flash.sikotiko.com/tag/flash-component/">component</a> 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<span style="color: #000066; font-weight: bold;">.</span>controls<span style="color: #000066; font-weight: bold;">.</span>Slider<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> s<span style="color: #000066; 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><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span>move<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span>setSize<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">500</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">300</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</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<span style="color: #000066; font-weight: bold;">.</span>maximum = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span>minimum = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span>tickInterval = <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span><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: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
s<span style="color: #000066; font-weight: bold;">.</span><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: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</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 <a title="Articles for Flash components" href="http://flash.sikotiko.com/tag/flash-component/">component</a>:</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>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://flash.sikotiko.com/2009/07/03/as3-be-careful-with-shape-tweens-above-buttons/" rel="bookmark" class="wherego_title">[AS3] Be careful with Shape tweens above buttons</a></li><li><a href="http://flash.sikotiko.com/2009/01/21/as3-skinning-flash-components/" rel="bookmark" class="wherego_title">[AS3] Skinning Flash Components</a></li><li><a href="http://flash.sikotiko.com/2009/05/02/flash-player-10-strange-artifacts/" rel="bookmark" class="wherego_title">Flash Player 10: Strange Artifacts</a></li></ul></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fflash.sikotiko.com%2F2009%2F05%2F05%2Fas3-skinning-slider-component%2F&amp;title=%5BAS3%5D%20Skinning%20Flash%20Components%20%26%238211%3B%20Part%20II" id="wpa2a_18"><img src="http://flash.sikotiko.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><img src="http://feeds.feedburner.com/~r/FlashActionscriptFlashSeo/~4/eibdenW0oug" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://flash.sikotiko.com/2009/05/05/as3-skinning-slider-component/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=as3-skinning-slider-component</feedburner:origLink></item>
	</channel>
</rss>

