<?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>FlashComponents.Net Blog &#187; Flash Tutorials</title>
	<atom:link href="http://www.flashxml.com/category/flash-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashxml.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:30:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Build an XML Banner Rotator in AS3 from Scratch</title>
		<link>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=build-an-xml-banner-rotator-in-as3-from-scratch</link>
		<comments>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/#comments</comments>
		<pubDate>Fri, 28 May 2010 13:08:25 +0000</pubDate>
		<dc:creator>FireCode</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[actionscript3]]></category>
		<category><![CDATA[flash banner rotator]]></category>
		<category><![CDATA[flash tutorial]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1717</guid>
		<description><![CDATA[In this tutorial we will use XML , URLLoader, URLRequest, Loader, Timer,  Events classes to develop the xml driven banner in AS3.  This is an easy-to-develop type of banner that you can use to showcase your products and services.]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will use XML , URLLoader, URLRequest, Loader, Timer,  Events classes to develop the xml driven banner in AS3.  This is an easy-to-develop type of banner that you can use to showcase your products and services.</p>
<p><a href="http://www.flashcomponents.net/author/FireCode.html"><img class="aligncenter size-full wp-image-1725" title="bras3" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/05/bras31.jpg" alt="bras3" width="556" height="209" /></a><span id="more-1717"></span></p>
<p>You can download the source code<a href="http://www.flashcomponents.net/publishing/tut.rar" target="_blank"> here</a>.</p>
<p><strong>Step 1: Preparing the files</strong></p>
<p>The purpose of loading external files is to update our content without having to modify our .fla file and generate a new swf file and upload it each time we decide to change the images or the information about them.</p>
<p>First we will create a folder inside the project’s folder and we will name it <strong>images</strong>.<strong> </strong>Inside this folder<strong> </strong>we will have all our images we want to load. It’s a good idea to have all the images with the same dimensions.</p>
<p>Second, we create an XML file. Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. We will name it <strong>data.xml. </strong>Any simple text editor can create our XML file. The structure of our XML is shown below.</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="sy0">&lt;</span>?<span class="kw3">xml</span> <span class="kw3">version</span>=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="sy0">&gt;</span>
<span class="sy0">&lt;</span>slide DELAY=<span class="st0">&quot;2&quot;</span><span class="sy0">&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/1.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. &quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/2.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Nam blandit dictum nibh vel mattis&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/3.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Cras a magna eu libero sodales luctus nec at nulla&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/4.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Nulla sed nisi sit amet ante hendrerit ullamcorper id eu neque&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;</span>image <span class="kw3">URL</span>=<span class="st0">&quot;images/5.jpg&quot;</span> DESCRIPTION=<span class="st0">&quot;Vivamus quis turpis libero.&quot;</span> <span class="sy0">/&gt;</span>
<span class="sy0">&lt;/</span>slide<span class="sy0">&gt;</span></pre></div></div>
<p>Copy and paste then save the file.</p>
<p>Now we will create the .fla file.  Open the Flash IDE and go to File, New… and choose Flash File( actionscript 3 ). Press Ctrl+F3 to bring out the swf properties panel and set the values size to 450&#215;370 px.</p>
<p>Save it in the same folder as your XML file and your <strong>images</strong> folder as BannerRotator.</p>
<p><strong>Step 2: Load and process the XML file</strong></p>
<p>Loading the data from our external xml file will require using the URLLoader and URLRequest classes, while processing it will require using the XML Class. First we will create the variables that we will be using in the entire program.</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _delay:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _total:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _images:XMLList = <span class="kw2">null</span>;</pre></div></div></p>
<p>Variable _delay will store the amount of data before the image changes to the next image. Variable _total will store the number of images. Variable _ images will store the data about our images.</p>
<p>Now we will prepare the program to load our external XML.</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _loader:URLLoader = <span class="kw2">new</span> URLLoader<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_loader.<span class="kw3">load</span><span class="br0">&#40;</span><span class="kw2">new</span> URLRequest<span class="br0">&#40;</span><span class="st0">&quot;data.xml&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
_loader.<span class="me1">addEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete, <span class="kw2">false</span>, 0, <span class="kw2">true</span><span class="br0">&#41;</span>;</pre></div></div></p>
<p>We have declared a _loader variable that will handle the loading of our file. The COMPLETE event tells the program that our XML has been loaded in our variable and it’s ready to be processed.</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> Complete<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> _xml:<span class="kw3">XML</span> = <span class="kw2">new</span> <span class="kw3">XML</span><span class="br0">&#40;</span><span class="kw3">e</span>.<span class="kw3">target</span>.<span class="kw3">data</span><span class="br0">&#41;</span>;
_loader = <span class="kw2">null</span>;
_loader.<span class="me1">removeEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete<span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>All the information from our loader will be stored into the local variable _xml. As a good practice we should clear our _loader variable and remove it’s event listener.</p>
<p>Inside our Complete function we will add the following lines of code.</p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> Complete<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> _xml:<span class="kw3">XML</span> = <span class="kw2">new</span> <span class="kw3">XML</span><span class="br0">&#40;</span><span class="kw3">e</span>.<span class="kw3">target</span>.<span class="kw3">data</span><span class="br0">&#41;</span>;
_loader.<span class="me1">removeEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, Complete<span class="br0">&#41;</span>;
_loader = <span class="kw2">null</span>;
_delay = _xml.<span class="sy0">@</span>DELAY;
_images = _xml.<span class="me1">image</span>;
_total= _images.<span class="kw3">length</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>We will use the @ operator to retrieve the attribute value we need for the _delay variable.  Variable _images will store a list with every node with the <strong>image</strong> tag. The .length() method will retrieve the number of nodes with the name <strong>image</strong> tag. Now all our variables are set.</p>
<p><strong>Step 3: Loading the external images</strong></p>
<p>In order to load an image we will use the Loader class. Several instances of this class will be created with a loop and stored inside an array for easy referencing.</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _loaders:<span class="kw3">Array</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="kw2">function</span> LoadImages<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i:<span class="kw3">int</span> = <span class="nu0">0</span>; i <span class="sy0">&lt;</span> _total; i++<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="kw2">var</span> <span class="kw3">_url</span>:<span class="kw3">String</span> = _images<span class="br0">&#91;</span>i<span class="br0">&#93;</span>.<span class="sy0">@</span><span class="kw3">URL</span>;
<span class="kw2">var</span> _loader:Loader = <span class="kw2">new</span> Loader<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_loader.<span class="kw3">load</span><span class="br0">&#40;</span><span class="kw2">new</span> URLRequest<span class="br0">&#40;</span><span class="kw3">_url</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;
_loader.<span class="me1">contentLoaderInfo</span>.<span class="me1">addEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, ImageLoaded, <span class="kw2">false</span>, 0, <span class="kw2">true</span><span class="br0">&#41;</span>;
_loaders.<span class="kw3">push</span><span class="br0">&#40;</span>_loader<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p>This loop will cycle through the XML file, extract the URL attribute of every <strong>image</strong> node,   pass it to a Loader instance and then push that instance into our array. To every Loader instance we attach an event listener that will fire a function once the image has been loaded.</p>
<p>Now we will create our function that will be fired with every image that has been loaded. But before that we will create a variable that it will check how many images have been loaded. Once we got all the images loaded we can start to slide the images.</p>
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _counter:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">function</span> ImageLoaded<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
_counter++;
<span class="kw1">if</span> <span class="br0">&#40;</span> _counter ==  _total<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
SetupSlider <span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p><strong>Step 4: Setup the slider</strong></p>
<p>First we’re going to declare some variables that we will need and import some extra classes.</p>
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">Tween</span>;
<span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">easing</span>.<span class="me1">Strong</span>;
<span class="kw2">var</span> _next:<span class="kw3">int</span> = <span class="nu0">0</span>;
<span class="kw2">var</span> _timer:Timer = <span class="kw2">null</span>;
<span class="kw2">var</span> _tween:Tween = <span class="kw2">null</span>;
<span class="kw2">var</span> _container:Sprite= <span class="kw2">new</span> Sprite<span class="br0">&#40;</span><span class="br0">&#41;</span>;</pre></div></div></p>
<p>Tween class it will be responsible for our animation and Strong it will be our effect class. Variable _next will store the current image id in the array and it will help us to select the next one. In order to have our slides running, we will use the Timer class to have our code executed repeatedly. The _tween variable will be used to store our transition effect. The _container will store our actual image to be displayed.</p>
<p>Let’s modify our Complete function so we can add our _container to the dis.</p>
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;">Now we will create our SetupSlider <span class="kw2">function</span>:
<span class="br0">&#91;</span>codesyntax lang=“actionscript”<span class="br0">&#93;</span>
<span class="kw2">function</span> SetupSlider<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
addChild<span class="br0">&#40;</span>_container<span class="br0">&#41;</span>;
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>_delay<span class="sy0">*</span>1000<span class="br0">&#41;</span>;
_timer.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TimerEvent.<span class="me1">TIMER</span>, TimerListener<span class="br0">&#41;</span>;
_timer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>We will add our container to the diplay list of our swf so later we can add images. the NextImage function will display our first image from the array. Then a timer will count how long until the next image will appear. We are going to set the speed, which is stored in the _delay variable,  at which the Timer intervals are triggered when instantiating the class. The Timer receives its speed in milliseconds, so we have to multiply our speed value by 1000.  Our timer will run its code through a separate event listener. Finally, we need to start the Timer by using the <em>.start()</em> method.</p>
<p>Now let’s create our TimerListener function.</p>
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> TimerListener<span class="br0">&#40;</span><span class="kw3">e</span>:TimerEvent<span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
_next++;
<span class="kw1">if</span> <span class="br0">&#40;</span>_next == _total<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_next =<span class="nu0">0</span>;
<span class="br0">&#125;</span>
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>Inside this function we set our next image to be displayed. If _next variable will be equal to the total amount of images the _next variable will be reset to start all over.</p>
<p>Finally we got to the part where we build our NextImage function.</p>
<div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">if</span><span class="br0">&#40;</span>_container.<span class="me1">numChildren</span><span class="sy0">&gt;</span>0<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_container.<span class="me1">removeChildAt</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="me1">alpha</span> = <span class="nu0">0</span>;
_container.<span class="me1">addChildAt</span><span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,0<span class="br0">&#41;</span>;
_tween = <span class="kw2">new</span> Tween<span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,<span class="st0">&quot;alpha&quot;</span>,Strong.<span class="me1">easeOut</span>,0,1,1,<span class="kw2">true</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>This function is responsible with displaying the current image set by the TimerListener function.  We check if there are any child objects inside our _container. If there is any we will remove it and clean our container then set the current image alpha to 0 ( making it invisible) so we can add a nice effect to it.  The Tween class will get this image and animate it’s alpha by making it appear slowly.</p>
<p>Now it’s time to hit Ctrl+Enter keys so we can test our movie. If everything is good with our code it should display some images that change after some time.</p>
<p>If everything is ok we should now add some info about the images that are being displayed. We will add a textfield that will contain the image description.</p>
<p>We will create a variable _text that will hold our data. Let’s modify our SetupSlider function by adding the following code.</p>
<div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _text:<span class="kw3">TextField</span> = <span class="kw2">new</span> <span class="kw3">TextField</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="kw2">function</span> SetupSlider<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
addChild<span class="br0">&#40;</span>_container<span class="br0">&#41;</span>;
_text.<span class="kw3">selectable</span>=<span class="kw2">false</span>;
_text.<span class="kw3">width</span> = <span class="nu0">450</span>;
_text.<span class="kw3">height</span> = <span class="nu0">50</span>;
_text.<span class="me1">x</span> = <span class="nu0">0</span>;
_text.<span class="me1">y</span> = <span class="nu0">300</span>;
addChild<span class="br0">&#40;</span>_text<span class="br0">&#41;</span>;
NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>;
_timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>_delay<span class="sy0">*</span>1000<span class="br0">&#41;</span>;
_timer.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TimerEvent.<span class="me1">TIMER</span>, TimerListener<span class="br0">&#41;</span>;
_timer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>Then we modify our NextImage function to add the information of the image.</p>
<div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">function</span> NextImage<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw1">if</span><span class="br0">&#40;</span>_container.<span class="me1">numChildren</span><span class="sy0">&gt;</span>0<span class="br0">&#41;</span>
<span class="br0">&#123;</span>
_container.<span class="me1">removeChildAt</span><span class="br0">&#40;</span>0<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="me1">alpha</span> = <span class="nu0">0</span>;
_container.<span class="me1">addChildAt</span><span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,0<span class="br0">&#41;</span>;
_tween = <span class="kw2">new</span> Tween<span class="br0">&#40;</span>_loaders<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>,<span class="st0">&quot;alpha&quot;</span>,Strong.<span class="me1">easeOut</span>,0,1,1,<span class="kw2">true</span><span class="br0">&#41;</span>;
_text.<span class="kw3">text</span> = _images<span class="br0">&#91;</span>_next<span class="br0">&#93;</span>.<span class="sy0">@</span>DESCRIPTION;
<span class="br0">&#125;</span></pre></div></div></p>
<p>The last line will get the DESCRIPTION attribute of the current image being displayed and add it to our textfield.</p>
<p>Hit Ctrl+Enter key again to test our movie. Each time the image changes our text field will display the description of the current image being displayed.</p>
<p><strong> Note</strong>: A working online version should include also a preloader for the images. If they are to big the user should know that an image is being loaded and the program is working correctly.</p>
<p>-----------------------------------------------</p>
<p><strong><a href="http://www.flashcomponents.net/author/FireCode.html" target="_blank"><img class="alignleft" title="FireCode" src="http://www.flashcomponents.net/upload/avatars/big/83908.jpg" alt="" width="75" height="75" /></a> FireCode</strong> is a promising project created by a couple of   passionate  Flash developers. Our purpose is  to help you understand how   Flash works  and show you how to develop or customize your components. We hope you enjoyed this tutorial. Don’t forget to visit our   portfolio  <a href="http://www.flashcomponents.net/author/FireCode.html" target="_blank">here</a> and  to send us your questions or suggestions!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fbuild-an-xml-banner-rotator-in-as3-from-scratch%2F&amp;t=%20Build%20an%20XML%20Banner%20Rotator%20in%20AS3%20from%20Scratch" id="facebook_share_button_1717" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1717') || document.getElementById('facebook_share_icon_1717') || document.getElementById('facebook_share_both_1717') || document.getElementById('facebook_share_button_1717');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1717') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/build-an-xml-banner-rotator-in-as3-from-scratch/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tweening in AS3</title>
		<link>http://www.flashxml.com/flash-tutorials/tweening-in-as3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=tweening-in-as3</link>
		<comments>http://www.flashxml.com/flash-tutorials/tweening-in-as3/#comments</comments>
		<pubDate>Thu, 20 May 2010 14:51:44 +0000</pubDate>
		<dc:creator>FireCode</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tweening in AS3]]></category>
		<category><![CDATA[TweenLite]]></category>
		<category><![CDATA[Tweenmax]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1654</guid>
		<description><![CDATA[Tweening in Flash is the process of creating an animation based on  the  start frame and end frame. You can use tweening for animations and   special effects in your application to make it more dynamic.
First we are going to work with Flash internal classes, and then we  will  move [...]]]></description>
			<content:encoded><![CDATA[<p>Tweening in Flash is the process of creating an animation based on  the  start frame and end frame. You can use tweening for animations and   special effects in your application to make it more dynamic.</p>
<p>First we are going to work with Flash internal classes, and then we  will  move on to some popular open-source classes to see the differences   between them. This will help you understand how things work and maybe   choose what&#8217;s best for you.<img title="More..." src="http://www.flashxml.com/wordpress/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /><span id="more-1654"></span></p>
<p>To download the source files used for this tutorial, click <a href="http://www.flashcomponents.net/upload/userfiles/FireCode/file/Tweening.zip" target="_blank">here</a> .</p>
<p><strong>Setup scene</strong></p>
<p>Create a new Flash File (for AS3). The dimensions of the stage should  be about 550 x 400. Next we will draw three shapes on the stage, each  one converted to a MovieClip with an instance name (look in the picture  bellow).</p>
<p><img title="twn" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/05/twn.jpg" alt="twn" width="550" height="201" /></p>
<p><strong>Flash Transitions</strong></p>
<p>First, we have to import the necessary classes.</p>
<div id="wpshdo_14" class="wp-synhighlighter-outer"><div id="wpshdt_14" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_14"></a><a id="wpshat_14" class="wp-synhighlighter-title" href="#codesyntax_14"  onClick="javascript:wpsh_toggleBlock(14)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_14" onClick="javascript:wpsh_code(14)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_14" onClick="javascript:wpsh_print(14)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_14" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">Tween</span>;
<span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">easing</span>.<span class="sy0">*</span>;</pre></div></div>
<p>The first line is to import the Tween, the second one is to import the Easing classes (used for effects). The constructor of the Tween Class looks like this:</p>
<p>Tween(obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean = false)</p>
<p>And the actual code looks like this:</p>
<div id="wpshdo_15" class="wp-synhighlighter-outer"><div id="wpshdt_15" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_15"></a><a id="wpshat_15" class="wp-synhighlighter-title" href="#codesyntax_15"  onClick="javascript:wpsh_toggleBlock(15)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_15" onClick="javascript:wpsh_code(15)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_15" onClick="javascript:wpsh_print(15)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_15" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw2">var</span> _flashTransitions:Tween = <span class="kw2">new</span> Tween<span class="br0">&#40;</span>_flash, <span class="st0">&quot;x&quot;</span>, Elastic.<span class="me1">easeOut</span>, 0, 300, 3, <span class="kw2">true</span><span class="br0">&#41;</span>;</pre></div></div>
<p>It’s a good practice to declare a variable for the tween to have more control.<br />
So far we have initialized our tween, the <em>object</em> parameter is the <em>_flash</em> MovieClip on the stage. We are changing its “x” propriety from its initial position ( 0 ) to the next finish position ( 300 ). Duration is used to set the speed of animation. For this animation we are using <strong>Elastic.easeOut</strong> easing effect. Another great thing is we can add events listeners to this animation. These are some of the events:<br />
<strong>motionChange</strong>:  Indicates that the Tween has changed and the screen has been updated.<br />
<strong>motionFinish</strong>:    Indicates that the Tween has reached the end and finished.</p>
<p>This is how they work:</p>
<div id="wpshdo_16" class="wp-synhighlighter-outer"><div id="wpshdt_16" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_16"></a><a id="wpshat_16" class="wp-synhighlighter-title" href="#codesyntax_16"  onClick="javascript:wpsh_toggleBlock(16)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_16" onClick="javascript:wpsh_code(16)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_16" onClick="javascript:wpsh_print(16)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_16" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> fl.<span class="me1">transitions</span>.<span class="me1">TweenEvent</span>;
_flashTransitions.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TweenEvent.<span class="me1">MOTION_CHANGE</span>, MotionChange<span class="br0">&#41;</span>;
_flashTransitions.<span class="me1">addEventListener</span><span class="br0">&#40;</span>TweenEvent.<span class="me1">MOTION_FINISH</span>, MotionFinish<span class="br0">&#41;</span>;
<span class="kw2">function</span> MotionFinish<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;in motion&quot;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="kw2">function</span> MotionChange<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;finish&quot;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div>
<p>First we’ve added the TweenEvent class, then the event listeners to our tween variable. Test the movie to check everything works as it should.<br />
<strong>Caurina’s Tweener</strong><br />
Tweener syntax was created with <strong>simplicity</strong> of use in mind, while still allowing access to more advanced features. It follows a &#8216;one-line&#8217; command when creating new tweenings, with no instancing required (as it&#8217;s a static Class). Also, there are no initialization methods required by Tweener, other than &#8216;import&#8217; command.<br />
Let’s see how it looks:<br />
Tweener.addTween(_object:Object, {_parameters:Object});</p>
<p>And the code:</p>
<div id="wpshdo_17" class="wp-synhighlighter-outer"><div id="wpshdt_17" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_17"></a><a id="wpshat_17" class="wp-synhighlighter-title" href="#codesyntax_17"  onClick="javascript:wpsh_toggleBlock(17)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_17" onClick="javascript:wpsh_code(17)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_17" onClick="javascript:wpsh_print(17)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_17" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> caurina.<span class="me1">transitions</span>;
Tweener.<span class="me1">addTween</span><span class="br0">&#40;</span>_caurina, <span class="br0">&#123;</span>x:300, <span class="kw3">time</span>:<span class="nu0">3</span>, transition:<span class="st0">&quot;easeOutElastic&quot;</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</pre></div></div>
<p>Our object parameter is _caurina MovieClip. The “x” parameter is the ending point of our tween. Tweener takes the object start position automatically. Next is the speed of the animation and finally the effect we are going to use.<br />
As you see, there is not much difference of what we’ve previously used. Now comes the cool part. Let’s add some events to this animation. All we have to do is add two more parameters.</p>
<p>onUpdate  equivalent to motionChange in Flash<br />
onComplete equivalent yo motionFinish in FLash</p>
<p>We are going to change the tween code like this:</p>
<div id="wpshdo_18" class="wp-synhighlighter-outer"><div id="wpshdt_18" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_18"></a><a id="wpshat_18" class="wp-synhighlighter-title" href="#codesyntax_18"  onClick="javascript:wpsh_toggleBlock(18)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_18" onClick="javascript:wpsh_code(18)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_18" onClick="javascript:wpsh_print(18)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_18" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> caurina.<span class="me1">transitions</span>;
Tweener.<span class="me1">addTween</span><span class="br0">&#40;</span>_caurina, <span class="br0">&#123;</span>x:300, <span class="kw3">time</span>:<span class="nu0">3</span>, transition:<span class="st0">&quot;easeOutElastic&quot;</span> <span class="kw3">onUpdate</span>:CaurinaChange,  onComplete:CaurinaComplete<span class="br0">&#125;</span><span class="br0">&#41;</span>;
<span class="kw2">function</span> CaurinaChange<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;caurina in motion&quot;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
<span class="kw2">function</span> CaurinaComplete<span class="br0">&#40;</span><span class="br0">&#41;</span>:<span class="kw3">void</span>
<span class="br0">&#123;</span>
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;caurina finish&quot;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div></p>
<p>That’s it ! You don’t have to import more classes and write another line of code. Pretty simple and clean.<br />
If you test the movie, you will see the same results.<br />
If you are using the Tweener you should know that it ads extra 8kb to your movie size. If you want to know more about Tweener you just have to take a look at the documentation of this package.<br />
<strong>TweenMax / TweenLite</strong><br />
Basically,  Tweenmax and TweenLite are the same. The difference is that TweenMax adds more features to TweenLite. I will focus on TweenLite.<br />
The constructor of the TweenLite looks like this:<br />
TweenLite(target:Object, duration:Number, vars:Object);<br />
And the code:<br />
<div id="wpshdo_19" class="wp-synhighlighter-outer"><div id="wpshdt_19" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_19"></a><a id="wpshat_19" class="wp-synhighlighter-title" href="#codesyntax_19"  onClick="javascript:wpsh_toggleBlock(19)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_19" onClick="javascript:wpsh_code(19)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_19" onClick="javascript:wpsh_print(19)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_19" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> com.<span class="me1">greensock</span>.<span class="me1">TweenLite</span>;
<span class="kw2">var</span> _tweenLite:TweenLite = TweenLite.<span class="me1">to</span><span class="br0">&#40;</span>_tweenmaxlite,3, <span class="br0">&#123;</span>x:300, ease:Elastic.<span class="me1">easeOut</span><span class="br0">&#125;</span><span class="br0">&#41;</span>;</pre></div></div><br />
As you can see, there is not much difference toTweener and the same goes for adding the events.</p>
<div id="wpshdo_20" class="wp-synhighlighter-outer"><div id="wpshdt_20" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_20"></a><a id="wpshat_20" class="wp-synhighlighter-title" href="#codesyntax_20"  onClick="javascript:wpsh_toggleBlock(20)" title="Click to show/hide code block">Code block</a></td><td align="right"><a href="#codesyntax_20" onClick="javascript:wpsh_code(20)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_20" onClick="javascript:wpsh_print(20)" title="Print code"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.flashxml.com/wordpress/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_20" class="wp-synhighlighter-inner" style="display: block;"><pre class="actionscript" style="font-family:monospace;"><span class="kw3">import</span> com.<span class="me1">greensock</span>.<span class="me1">TweenLite</span>;
<span class="kw2">var</span> _tweenLite:TweenLite = TweenLite.<span class="me1">to</span><span class="br0">&#40;</span>_tweenmaxlite,3, <span class="br0">&#123;</span>x:300, ease:Elastic.<span class="me1">easeOut</span>, <span class="kw3">onUpdate</span>:TweenLiteUpdate, onComplete:TweenLiteComplete <span class="br0">&#125;</span><span class="br0">&#41;</span>;</pre></div></div>
<p>A project using TweenLite is going to have an extra 4.7kb added to its size.<br />
<strong>Conclusion</strong><strong> </strong><br />
If you run all three examples, you will see they all do the same thing. You can change almost every proprety of the object that we want to tween, from position to scaling or alpha. The main difference is that the last two examples are easy to write and clean. If you are going to make a project that doesn’t  need to many effects, it’s better to use TweenLite or Tweener ( it’s a matter of taste and size added to the resulting .swf ). For projects with elaborated effects I suggest using TweenMax as it has some nice extra features.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<strong>FireCode</strong> is a promising project created by a couple of  passionate  Flash developers. Our purpose is to help you understand how  Flash works  and show you how to develop or customize your components.<br />
We hope you enjoyed this tutorial. Don&#8217;t forget to visit our   portfolio <a href="http://www.flashcomponents.net/author/FireCode.html" target="_blank">here</a> and  to send us your questions or suggestions!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Ftweening-in-as3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Ftweening-in-as3%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Ftweening-in-as3%2F&amp;t=Tweening%20in%20AS3" id="facebook_share_button_1654" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1654') || document.getElementById('facebook_share_icon_1654') || document.getElementById('facebook_share_both_1654') || document.getElementById('facebook_share_button_1654');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1654') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/tweening-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 12 Reasons Your File Was Rejected</title>
		<link>http://www.flashxml.com/flash-tutorials/authors-zone/top-12-reasons-your-file-was-rejected/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=top-12-reasons-your-file-was-rejected</link>
		<comments>http://www.flashxml.com/flash-tutorials/authors-zone/top-12-reasons-your-file-was-rejected/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 07:59:27 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Author's Zone]]></category>
		<category><![CDATA[flash components]]></category>
		<category><![CDATA[Flash developers]]></category>
		<category><![CDATA[flash marketplace]]></category>
		<category><![CDATA[flashcomponents.net]]></category>
		<category><![CDATA[quality flash components]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1517</guid>
		<description><![CDATA[What makes FlashComponents.net a top-notch marketplace are the quality files that buyers find here. In order to keep this high-level, some Flash files that are submitted for approval may be rejected for certain reasons. But don't get frustrated if your files have been rejected because our staff is here to help you. Unlike other marketplaces, our staff will not only review your files, but also make suggestions on what you can change or improve in order to get your components in the day light.]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1521" title="Sad" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/04/sad.jpg" alt="Sad" width="600" height="270" /></p>
<p>What makes FlashComponents.net a top-notch marketplace are the quality files that buyers find here. In order to keep this high-level, some Flash files that are submitted for approval may be rejected for certain reasons. But don&#8217;t get frustrated if your files have been rejected because our staff is here to help you. Unlike other marketplaces, our staff will not only review your files, but also make suggestions on what you can change or improve in order to get your components in the day light.</p>
<p>Taking into consideration the huge amount of files we receive daily for approval, here are the main reasons your file may have been rejected:<span id="more-1517"></span></p>
<h4>1.  The component is not really a Flash file</h4>
<p>Sure, there are some objects moving around, but that doesn&#8217;t make it a Flash component. At least that&#8217;s not what we&#8217;re looking for in a file. When we say quality files, we mean mouthwatering design, unique features and, nevertheless, useful. And this is where the second reason appears.</p>
<h4>2. The component is not useful</h4>
<p>We don&#8217;t just approve files so we can fill in the categories in our website. We approve them because we really believe in them and in the fact that buyers will find them invaluable for their websites. When developing a Flash file, you must firstly consider for whom you&#8217;re developing it. Will anyone find it useful enough to buy it?</p>
<h4>3. The component is better off free</h4>
<p>It just doesn&#8217;t do you justice. If you already have a brilliant portfolio we&#8217;re all proud of, why lower your standards? Why not give it away for free to get more visitors to your author profile? In this case, our staff will give you a suggestion to make it free. You don&#8217;t have to accept it, but keep in mind that you can also make money by giving away free stuff.</p>
<h4>4. The component&#8217;s price is too high</h4>
<p>Unlike other marketplaces, you are free to choose the price you think your component is worth selling. On the other hand, don&#8217;t overestimate your file. To make sure you&#8217;ve got the right price, go through the other files from different developers on FC to make an idea of the right price. Moreover, be the critic of your own file. Do you have some unique features that other files from the same category don&#8217;t? Or is it just another &#8220;simple slider&#8221;?</p>
<h4>5. The file&#8217;s sample has not been uploaded correctly</h4>
<p>This happens very often. To avoid this unpleasant situation, make sure you read the instructions carefully before uploading the sample.</p>
<h4>6. The sample contains commercial links</h4>
<p>This is also a common reason we reject a file. There are a lot of authors that include links to other commercial websites or to their own commercial/non-commercial portfolio. This is not allowed on FC. If you want to exemplify the usage of a hyperlink, we recommend you include a link to your author page on FC. This is a simple and elegant solution that can also help you promote the other files from your portfolio. For further information regarding commercial links, please see <a href="http://www.flashcomponents.net/resources/selling/authors_rights_and_responsibilities/commercial_links.html" target="_blank">our policy</a>.</p>
<h4>7. The file includes images, audio or video files you have no copyright over</h4>
<p>In this case, there&#8217;s an easy solution. Just check out our <a href="http://www.flashcomponents.net/resources/library_resources.html" target="_blank">Library</a> where you can find some great resources for free image, audio and video files you can use in your commercial projects or samples in order to show the potential buyer how the file works.</p>
<h4>8. The sample image is low-quality</h4>
<p>Make sure the image you use for the file you&#8217;ve submitted is a quality one and that the main elements can be distinguished. Consider this when compressing the image.</p>
<h4>9. The file is corrupted</h4>
<p>There&#8217;s no need for further explanations. This is something you have to fix right away and then re-upload the file for approval.</p>
<h4>10. The file doesn&#8217;t open with the specified version of Flash</h4>
<p>Before uploading the file, make sure to review the source code a couple of times and make sure it opens with the version of Flash you specified in the description. This is a simple thing if you don&#8217;t want your file rejected and wait a few more days before it&#8217;s reviewed again.</p>
<h4>11. There&#8217;s another file with the exact same name</h4>
<p>Be creative when it comes to naming your file. Try avoiding the same all boring words such as: premium, simple, dynamic, basic, etc. Give it a cool name that differentiates it from other files.</p>
<h4>12. The same file is being sold on another website by a different developer</h4>
<p>&#8220;Borrowing&#8221; files from other websites and publishing them on FC is not allowed. Even if we don&#8217;t always discover this right away, our visitors or other authors will certainly do. That&#8217;s when your file is reported for copyright infringement and you will have to deal with an expensive punishment. Check out our <a href="http://www.flashcomponents.net/resources/selling/authors_rights_and_responsibilities/copyright_policy_fc.html" target="_blank">copyright policy</a> for more information.</p>
<p>There may also be other reasons I&#8217;ve missed, but be sure we will never reject a file without including a message explaining why it was rejected and what our staff believes you can do to improve it in order to get it out in the open on FlashComponents.net. Good luck!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Ftop-12-reasons-your-file-was-rejected%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Ftop-12-reasons-your-file-was-rejected%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Ftop-12-reasons-your-file-was-rejected%2F&amp;t=Top%2012%20Reasons%20Your%20File%20Was%20Rejected" id="facebook_share_button_1517" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1517') || document.getElementById('facebook_share_icon_1517') || document.getElementById('facebook_share_both_1517') || document.getElementById('facebook_share_button_1517');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1517') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/authors-zone/top-12-reasons-your-file-was-rejected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get Featured on FC and Turn Your Files into Mega-Bucks?</title>
		<link>http://www.flashxml.com/flash-categories/actionscript-3-0/how-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks</link>
		<comments>http://www.flashxml.com/flash-categories/actionscript-3-0/how-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:35:23 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Author's Zone]]></category>
		<category><![CDATA[creative design]]></category>
		<category><![CDATA[featured on FlashComponents.net]]></category>
		<category><![CDATA[flash components]]></category>
		<category><![CDATA[original features]]></category>
		<category><![CDATA[quality flash components]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1399</guid>
		<description><![CDATA[You don't have to have an idea from heaven in order to get featured on FC. On the other hand, being featured is no dumb luck. We appreciate a good file and we make sure it gets the deserved attention from potential customers. Since you've sent us a lot of e-mails asking how your file can get into the "What's New" box, here's a list of criteria we take into consideration when choosing to feature a Flash component.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-1406" title="DOLLARS" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/DOLLARS1.jpg" alt="DOLLARS" width="600" height="163" /></p>
<p>You don&#8217;t have to have an idea from heaven in order to get featured on FC. On the other hand, being featured is no dumb luck. We appreciate a good file and we make sure it gets the deserved attention from potential customers. Since you&#8217;ve sent us a lot of e-mails asking how your file can get into the &#8220;What&#8217;s New&#8221; box, here&#8217;s a list of criteria we take into consideration when choosing to feature a Flash component.<span id="more-1399"></span></p>
<h3>Your file SHOULD:</h3>
<h4>1. Be a cool product</h4>
<p>Firstly, we want to see original files or files with cool new features. Obviously, the file should also have a distinctive design and good user experience. Keep in mind that by including your file in the Featured box, we&#8217;re telling our visitors what they should definitely check out. We will avoid featuring a file that wastes their time, by drawing their attention to a file that isn&#8217;t usable or attractive. Therefore, you won&#8217;t be seeing just another &#8220;simple&#8221; banner rotator being featured any time soon.</p>
<h4>2. Be different</h4>
<p>Even though we choose file based on various criteria, you can always send us an e-mail and give us your pitch. Explain what makes your file special and why we should feature it.</p>
<h4>3. Communicate the content with a truly unique layout</h4>
<p>Consider developing a well structured file where the information is nicely presented and communicated. An unusual or fresh approach in which the content is presented can get you at the top of the waiting list. Take a risk, while having usability in mind at all times.</p>
<h4>4. Have a unique feature</h4>
<p><img class="aligncenter size-full wp-image-1408" title="76191_7895" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/76191_7895.jpg" alt="76191_7895" width="600" height="167" /></p>
<p>Apart from a top-notch design, your file should be able to stand out in the crowd by including an innovative feature and using cool techniques from which potential customer can benefit. If your file includes a new feature that no other file does, then you have a good chance of being featured.</p>
<h4>5.  Boost of creativity</h4>
<p>Nowadays, with so many Flash marketplaces out there, competition is huge. That&#8217;s why you really need to think outside the box and come up with an interesting and creative file that is bound to be noticed.  And when we say creative, we don&#8217;t just think about a &#8220;nice&#8221; design. We think: novelty, intuitive layout, usability and accessibility. These are just a few think you should consider when creating a new file.</p>
<h4>6. Be Wanted</h4>
<p>We have certain categories of file that are oversubscribed and that include tons of similar files, which makes it harder for your file to get noticed. That&#8217;s why we recommend that you find a niche and develop a component targeting a smaller category. For instance, instead of developing a general Flash website that can be used in about every domain out there, try a different approach. Develop a website that can be used exclusively to present a Spa, or a hotel, for instance. Do some research and figure out the trends and the domains that are flourishing today.</p>
<h4>7. Be strategically released at the right time</h4>
<p><img class="aligncenter size-full wp-image-1410" title="463245_17834269" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/463245_17834269.jpg" alt="463245_17834269" width="600" height="168" /></p>
<p>Even if you might have not considered this until now, the time of the release of a new file is also important. The files or authors featured in our &#8220;What&#8217;s New&#8221; box change three times a week: Monday, Thursday and Friday. On the same page, most files are sold at the beginning of the week, meaning from Monday until Thursday. That&#8217;s why you should consider uploading your files one or two days sooner, so you have a better chance to be noticed. On the other hand, don&#8217;t rely on this because we sometimes receive a lot of file and verifying them might take longer than expected.</p>
<h4>8. Be a Quality File</h4>
<p>Even though we encourage  you to develop files often, we&#8217;ll never put quantity in front of quality. A good file has a better chance of being featured than one that has been developed in a rush and can have a lot of bugs. We recommend you focus more on the quality of the component you develop, rather than producing file after file. Create the best file you can and keep in mind that, whether you get featured or not, you will get sales firstly because of it&#8217;s quality.</p>
<h4>9. Be developed in AS3</h4>
<p>While AS2 files are still getting sold on FC, this isn&#8217;t going to last for a very long time. Consider learning AS3, if you haven&#8217;t already, and have a portfolio with more than 80% AS3 files. W e strongly believe you will benefit from this in the near future.</p>
<h4>10. Be Part of a Discount Pack</h4>
<p><img class="aligncenter size-full wp-image-1412" title="1223292_75884929" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/1223292_75884929.jpg" alt="1223292_75884929" width="600" height="170" /></p>
<p>We&#8217;re constantly searching to feature discount packs because everybody loves them. That&#8217;s why you can also consider using some of your existing files and including them in a promotional pack. It&#8217;s a great way to promote yourself and your files.</p>
<h3>Your file does NOT have to:</h3>
<h4>1. Be too complex</h4>
<p>Sometimes, this scares off clients because they believe that they don&#8217;t have enough knowledge to use the file and they they&#8217;ll have to pay extra in order to implement the file into their website.</p>
<p>Consider developing easy to use files or, at least, include a user guide that can help the client use the component without having to spend more.</p>
<h4>2. Be BFF with the FC staff</h4>
<p>While we enjoy communicating with all of you and make sure you know we like your new releases, you should keep in mind that we only feature files based on its quality and the above mentioned criteria.
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fhow-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fhow-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-categories%2Factionscript-3-0%2Fhow-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks%2F&amp;t=How%20to%20Get%20Featured%20on%20FC%20and%20Turn%20Your%20Files%20into%20Mega-Bucks%3F" id="facebook_share_button_1399" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1399') || document.getElementById('facebook_share_icon_1399') || document.getElementById('facebook_share_both_1399') || document.getElementById('facebook_share_button_1399');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1399') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-categories/actionscript-3-0/how-to-get-featured-on-fc-and-turn-your-files-into-mega-bucks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cool News Readers for Your Website</title>
		<link>http://www.flashxml.com/flash-tutorials/cool-news-readers-for-your-website/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cool-news-readers-for-your-website</link>
		<comments>http://www.flashxml.com/flash-tutorials/cool-news-readers-for-your-website/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 15:42:48 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Actionscript 2.0]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[flash news reader]]></category>
		<category><![CDATA[xml news reader]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1373</guid>
		<description><![CDATA[Two cool news readers, along with some useful tutorials that teach you how you can create your own Flash news reader.]]></description>
			<content:encoded><![CDATA[<p>The two XML news readers developed by airesvsg are not just easy to use and useful, but also have a nice design.</p>
<p><a href="http://www.flashcomponents.net/component/av_panel_news_v4.1.html"><img class="alignleft size-full wp-image-1371" title="1" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/11.jpg" alt="1" width="240" height="152" /></a> <a href="http://www.flashcomponents.net/component/av_panel_news_v4.1.html" target="_blank"><img title="2" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/21.jpg" alt="2" width="240" height="152" /></a><span id="more-1373"></span></p>
<p>You can style them however you see fit, by simply editing the XML file.</p>
<p><a href="http://www.flashcomponents.net/component/av_news_rotator.html" target="_blank"><img title="3" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/03/31.jpg" alt="3" width="600" height="196" /></a></p>
<p>Check out  <a href="http://www.flashcomponents.net/author/airesvsg.html" target="_blank">airesvsg</a>&#8217;s portfolio for other premium Flash files.</p>
<p>If you want to build your own Flash News Reader, here are some resources you may find useful:</p>
<p>1) <a href="http://www.frenchsquared.com/flash_CS4_Tutorial_xml.php" target="_blank">Build your own Flash RSS Reader [Tutorial: Flash ActionScript 3.0]</a></p>
<p>2)<a href="http://www.frenchsquared.com/flash_CS4_Tutorial_xml.php" target="_blank"> Flash: Reading XML</a></p>
<p>3) <a href="http://www.flashmagazine.com/Tutorials/detail/reading_news_feeds_with_xmlsa/" target="_blank">Create a RSS news ticker/reader </a>
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcool-news-readers-for-your-website%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcool-news-readers-for-your-website%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fcool-news-readers-for-your-website%2F&amp;t=Cool%20News%20Readers%20for%20Your%20Website" id="facebook_share_button_1373" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1373') || document.getElementById('facebook_share_icon_1373') || document.getElementById('facebook_share_both_1373') || document.getElementById('facebook_share_button_1373');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1373') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/cool-news-readers-for-your-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>8 Tips for Successful Interaction with Clients</title>
		<link>http://www.flashxml.com/flash-tutorials/authors-zone/8-tips-for-successful-interaction-with-clients/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=8-tips-for-successful-interaction-with-clients</link>
		<comments>http://www.flashxml.com/flash-tutorials/authors-zone/8-tips-for-successful-interaction-with-clients/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 07:24:41 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Author's Zone]]></category>
		<category><![CDATA[criticism]]></category>
		<category><![CDATA[effective communication]]></category>
		<category><![CDATA[Flash developers]]></category>
		<category><![CDATA[success]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1205</guid>
		<description><![CDATA[The hey to any success is a good communication. This also applies to Flash developers, even though many of you believe that great components equals great sales. Obviously, the quality of a Flash component matters, but knowing who you customers are, developing according to their needs, offering technical support and having the right attitude towards criticism are the main things that make a customer happy. And what happens if a customer is happy? He will come back for more.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-1213" title="1078183_13647396" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/1078183_13647396.jpg" alt="1078183_13647396" width="250" height="236" />The key to any success is good communication. This also applies to Flash developers, even though many of you believe that great components equals great sales. Obviously, the quality of a Flash component matters, but knowing who your customers are, developing according to their needs, offering technical support and having the right attitude towards criticism are the main things that make a customer happy. And what happens if a customer is happy? He will come back for more.</p>
<p>Communicating with (potential) customers is a must in every business, even though dealing with them is not always easy. But what you have to keep in mind is that not all are <a href="http://clientsfromhell.tumblr.com/" target="_blank">Clients From Hell</a>. After all, they&#8217;re the ones putting the bread on your table. Most importantly, you are given the chance to do something you&#8217;re passionate about and create a Flash component for a client that is going to enjoy using it.</p>
<p>So here a few suggestions on how to improve your communication skills with regards to (potential) customers.<span id="more-1205"></span></p>
<h3>1. <span style="color: #800000;">Don&#8217;t try to <span style="text-decoration: line-through;">please everyone</span></span></h3>
<p>“<em>If you try and please everyone, you won’t please anyone</em>.” -<a href="http://gettingreal.37signals.com/ch04_Hire_the_Right_Customers.php" target="_blank">37signals</a>.</p>
<p>This one is the golden rule. When developing a component, keep in mind who are the visitors on FlashComponents.net and what they are looking for. Also, if you&#8217;re specialized in developing Flash galleries or Flash templates, make an effort to improve your designs and features on that. Focus on what you do best and always bring new features to your files.</p>
<h3><span style="color: #333333;">2. <span style="color: #800000;">Encourage feedback</span></span></h3>
<p><span style="color: #333333;"><span style="color: #800000;"><img class="aligncenter size-full wp-image-1222" title="open" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/open.jpg" alt="open" width="600" height="184" /><br />
</span></span></p>
<p>Let customers know that you&#8217;d appreciate a comment on your product page with an opinion or a suggestion regarding the file you released. This way you can figure out how much the visitors like/ dislike your file, and what features they would like added. It helps to discover what they like, for future reference.</p>
<h3>3. <span style="color: #800000;">Thank critics</span></h3>
<p>Don&#8217;t be afraid of criticism. Be thankful for it and try to get the best of it. Always keep an open mind when it comes to a bad review of your file. Remember we&#8217;re all subjective and so are your customers. Some might like it, some might not.</p>
<p>Do your best to discover the reason why some don&#8217;t like it and take it into consideration when adding a new feature to your file or when developing a different component. Not all criticism is unfounded. You might even get some great ideas from these reviews.</p>
<h3>4. <span style="color: #800000;">Listen</span></h3>
<p>A very important rule when dealing with clients is listening to what they have to say. Read carefully the information they are providing to you and the things they&#8217;d like done, for instance, customizations.</p>
<p>Never say &#8220;No&#8221;! Instead, if what the client is asking for seems crazy or impossible, try to provide alternatives and advices. They will appreciate you wanting to work it out. That&#8217;s in fact what you do: you provide solutions. Also, if you have questions you want to ask to clarify what the client needs, don&#8217;t hesitate. He will appreciate your interest to help him out.</p>
<h3>5. <span style="color: #800000;">Answer questions</span></h3>
<p><span style="color: #800000;"><img class="aligncenter size-full wp-image-1228" title="puzzle2" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/puzzle22.jpg" alt="puzzle2" width="606" height="183" /><br />
</span></p>
<p>Make sure you check your client messages everyday, whether they&#8217;re in your FC account, personal e-mail or social networks, such as Twitter or Facebook. Most of the clients have questions regarding how the file works, what they should do to change a button, a color, a background. Don&#8217;t take too long answering client messages and providing support because they also have deadlines and need fast assistance. Provide punctual and quality support and they&#8217;ll definitely appreciate it and return to you.</p>
<h3>6. <span style="color: #800000;">Put yourself into his shoes </span></h3>
<p>Most of our customers are beginners, so you should do your best to understand their point of view. They might not know much and that&#8217;s, in fact, why they&#8217;re buying your file and paying you for it. When communicating with clients, speak his language. Avoid using jargon or technical language because you risk confusing the client after the first lines. Not only will you be wasting time, but he also won&#8217;t understand anything. If you are keen on using them, explain to the client what it means.</p>
<h3>7. <span style="color: #800000;">Mistakes are only human</span></h3>
<p><span style="color: #800000;"><img class="aligncenter size-full wp-image-1232" title="fix1" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/fix11.jpg" alt="fix1" width="600" height="226" /><br />
</span></p>
<p>If you&#8217;ve developed a file and it turns out it doesn&#8217;t work, it has bugs or other issues, don&#8217;t act innocent. Politely admit your screw up and fix it as soon as possible. Also, let your potential customers know that you&#8217;re working on that and when it will be fixed, so they can purchase it.</p>
<h3>8. <span style="color: #800000;">Prove you are a professional</span></h3>
<p>Keep in mind at all times that customers are paying you for a service and you are expected to deliver it in a professional manner. That&#8217;s why you should:<br />
- offer support in time;<br />
- provide documentation for your files;<br />
- respond politely to criticism;<br />
- thank them for their feedback and suggestions;<br />
- use proper English when communicating with a customer. If your English is not very good, use whatever translating tool you have.</p>
<p>All things considered, you will be a pleasure to work with. Now tell me, how well do you communicate with your (potential) customers?
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2F8-tips-for-successful-interaction-with-clients%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2F8-tips-for-successful-interaction-with-clients%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2F8-tips-for-successful-interaction-with-clients%2F&amp;t=8%20Tips%20for%20Successful%20Interaction%20with%20Clients" id="facebook_share_button_1205" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1205') || document.getElementById('facebook_share_icon_1205') || document.getElementById('facebook_share_both_1205') || document.getElementById('facebook_share_button_1205');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1205') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/authors-zone/8-tips-for-successful-interaction-with-clients/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Author&#8217;s Zone: 12 Great Tricks to Promote Your Flash Files</title>
		<link>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-12-great-tricks-to-promote-your-flash-files/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=authors-zone-12-great-tricks-to-promote-your-flash-files</link>
		<comments>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-12-great-tricks-to-promote-your-flash-files/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 14:13:17 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Author's Zone]]></category>
		<category><![CDATA[big sales]]></category>
		<category><![CDATA[flash 3D carousel XML]]></category>
		<category><![CDATA[flash components]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[promote]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1119</guid>
		<description><![CDATA[We all believe that the quality of a file should reflect on the number of sales, but the truth is that this is not always the case. If people don't know your Flash components exist or if they're not promoted properly, you might just be disappointed. That's why we've decided to share some tips on how to promote your files better so that you can get more sales. We will go over 12 great ways of promoting your files on FlashComponents.net.]]></description>
			<content:encoded><![CDATA[<p>We all believe that the quality of a file should reflect on the number of sales, but the truth is that this is not always the case. If people don&#8217;t know your Flash components exist or if they&#8217;re not promoted properly, you might just be disappointed. That&#8217;s why we&#8217;ve decided to share some tips on how to promote your files better so that you can get more sales. We will go over 12 great ways of promoting your files on FlashComponents.net.<span id="more-1119"></span></p>
<h3>1. <span style="color: #800000;"> </span><span style="color: #800000;">Presentation</span></h3>
<p>The first thing a visitor sees on the FC homepage is the preview image of your file. There are about 20 new released Flash components displayed on the homepage and a self explanatory image of your file can get his attention. People are extremely &#8220;visual&#8221;, so if your image says nothing about how the file looks like or what it can do, he might just not notice it. Use a clear image that reflects the main feature of your file and make it a good one. Take your time cropping and resizing, because this can convince the potential customer your file is worth checking out.</p>
<h3>2. <span style="color: #800000;">Let him play</span></h3>
<p style="text-align: center;"><span style="color: #800000;"><img class="aligncenter" title="08.02" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/08.022.jpg" alt="08.02" width="207" height="144" /><br />
</span></p>
<p><img src="file:///C:/Windows/Temp/moz-screenshot.png" alt="" /><img src="file:///C:/Windows/Temp/moz-screenshot-1.png" alt="" /></p>
<p>If you&#8217;ve convinced him to check out your file, he&#8217;s going to want to see more. Provide a sample of the file on your component page and show him how it works. Give him the chance to play with the component and see what it can do for him.</p>
<h3>3. <span style="color: #800000;">Provide Documentation</span></h3>
<p>On this same page, you should also fill in the technical details of the file, such as Flash Level, Documentation Level, but also a description of its features and suggestions of use. Basically, it should provide users with the help and documentation they&#8217;re looking for. Include a brief presentation of the component and suggest in the first paragraph how it can be used.</p>
<p>For example, if you&#8217;re selling an image gallery, can it also be used as a product showcase? Also, you should keep in mind that most of the visitors don&#8217;t have advanced knowledge of Flash as you do, otherwise they&#8217;d develop the file themselves. That&#8217;s why the description should not be too technical.</p>
<p>Use a simple, friendly, clear language so they can understand what they can do with the file. This is not the place to be big-headed by using technical language only you and other Flashers like you can understand. The visitor should be able to understand easily what the file can do for him, and not how smart you are.</p>
<h3>4. <span style="color: #800000;">Write with Keywords for SEO</span></h3>
<p>Most people search for Flash components using Google, so using proper keywords are the first step to get them to check out your file. For instance, if you&#8217;ve developed a Flash Video Gallery, make sure to include these words in the name of the component. If you&#8217;re offering a Free file, include the word Free in the title of the component.</p>
<p style="text-align: center;"><img class="aligncenter" title="08.02" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/08.024.jpg" alt="08.02" width="518" height="144" /></p>
<p>Let&#8217;s take Ngchenghow&#8217;s <a href="http://www.flashcomponents.net/component/super_carousel.html" target="_blank">Flash XML 3D Carousel (AS3)</a>. He&#8217;s included all the keywords that describe its main features and it&#8217;s increasing his chances to appear in the first places in the search results. No wonder this file has 160 sales. Moreover, these keywords should also be included in the description of the file. On the other side, don&#8217;t include keywords that have nothing to do with your file or its features. It may attract visitors, but you&#8217;ll disappoint them because they&#8217;re not finding what they&#8217;re looking for and they&#8217;ll leave in a heart beat.</p>
<h3>5. <span style="color: #800000;">Set the Right Price</span></h3>
<p>The price is also a big factor of decision. Don&#8217;t kid yourself that if your file is so awesome that they&#8217;ll be willing to pay whatever for it. Set a price taking into consideration the uniqueness and quality of the file, the time you&#8217;ve spent  developing it, but also the trends and the range of files on the market. If you&#8217;ve developed a file with no special features, don&#8217;t expect it to sell like hot bread if you&#8217;ve set a high price. If it&#8217;s an original file with unique features, you can use that to set a higher price.</p>
<p>On FlashComponents we have three licenses you can set different prices for &#8211; regular, commercial and special. If you don&#8217;t know what price to set, refer to other similar products with big sales and set a price taking into consideration the elements mentioned above.</p>
<h3>6. <span style="color: #800000;">Have a Brilliant Idea</span></h3>
<p style="text-align: center;"><span style="color: #800000;"><img class="aligncenter" title="08.02" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/08.025.jpg" alt="08.02" width="392" height="136" /><br />
</span></p>
<p>Speaking of originality, people always want to buy unique files, that are different from others on the market. Don&#8217;t sell them the same old slideshow you developed with a tutorial. You can do better than that! Come up with original ideas and impress your customers. Also, develop constantly. Don&#8217;t just develop 2 files and take a 2 months holiday. To be at the top of the list, you should get out of your comfort zone and re-energize yourself. Start developing at least 1-2 new files a month and your visibility will increase. Users will notice you and, cha-ching, you get more sales.</p>
<h3>7. <span style="color: #800000;">Put Together Discount Packs</span></h3>
<p>We all love discounts. f you lack creativity, there&#8217;s always an alternative. Put together 3-4-5 of you files in a package and watch the results. You&#8217;ll be surprised how many people buy Flash components in a bunch. This is a great way to sell files and to promote yourself.</p>
<h3>8. <span style="color: #800000;">Give Them the Chance to Create</span></h3>
<p style="text-align: center;"><span style="color: #800000;"><img class="aligncenter size-full wp-image-1144" title="08.02" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/08.028.jpg" alt="08.02" width="243" height="146" /><br />
</span></p>
<p>When developing a file, keep in mind that people like to customize and personalize it to fit their space. Always consider the customer and his needs. Give instructions on how the file can be modified, from colors and text, to music and boxes. Give them the chance to be involved in the process and make your file &#8220;their&#8221; file.</p>
<h3>9. <span style="color: #800000;">Update Files Constantly</span></h3>
<p>If you&#8217;re having trouble selling a file or the opposite, if the file is selling well, don&#8217;t just leave it as it is. Check out the comments from your component&#8217;s page posted by your (potential) customers and see what suggestion they have and what other features they&#8217;d like included to that file. Take it into consideration and work on that. You will attract new customers and the ones that have already purchased your file and that will benefit from the updates will think they&#8217;re getting their money&#8217;s worth and will definitely come back.</p>
<h3>10. <span style="color: #800000;">How about some Freebies?</span></h3>
<p style="text-align: center;"><span style="color: #800000;"><img class="aligncenter" title="08.02" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/02/08.029.jpg" alt="08.02" width="225" height="151" /><br />
</span></p>
<p>You already know this one. There&#8217;s no better way to promote yourself then by giving away one of your files free or charge. You&#8217;ll get attention and your users will check out your other files to see the other goodies you&#8217;ve got to offer.You don&#8217;t really need to create a special file to give away. Use the files you already have in your portfolio, but that are not selling well or a file that is very cheap. This is bound to do the trick.</p>
<h3>11. <span style="color: #800000;">Hit the Flash Catwalk</span></h3>
<p>What a better way to promote your files for free than our Flash Catwalk? Ask your customers for feedback and a link to the website where they used your file. Send us the information and you&#8217;ll get a spot in our newsletter, along with and exclusive article and all the promotion you can get.</p>
<h3>12. <span style="color: #800000;">Be the Expert</span></h3>
<p>Show them that you know what you&#8217;re talking about and write a tutorial for one of your files. Write an accessible step-by-step tutorial so everybody can use it. At the end of the tutorial, include a link to your profile page to make sure they find out who you are and what you can do.</p>
<p>We experience these things with you guys, so we’re all learning  together, side by side. That’s why we’d love to receive your comments on  what it is that works for you and how you managed to promote your files on FC. Send us your insights at <span style="color: #800000;">authors4fc@flashcomponents.net</span> and we’ll be sure to include  them in a future article. If you’ve got some great insights, you can  even write your own piece with tips&amp;tricks and we’ll publish it  here. Join the club!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-12-great-tricks-to-promote-your-flash-files%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-12-great-tricks-to-promote-your-flash-files%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-12-great-tricks-to-promote-your-flash-files%2F&amp;t=Author%27s%20Zone%3A%2012%20Great%20Tricks%20to%20Promote%20Your%20Flash%20Files" id="facebook_share_button_1119" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1119') || document.getElementById('facebook_share_icon_1119') || document.getElementById('facebook_share_both_1119') || document.getElementById('facebook_share_button_1119');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1119') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-12-great-tricks-to-promote-your-flash-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Author&#8217;s Zone: How to Build a Strong Identity?</title>
		<link>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-how-to-build-a-strong-identity/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=authors-zone-how-to-build-a-strong-identity</link>
		<comments>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-how-to-build-a-strong-identity/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:40:22 +0000</pubDate>
		<dc:creator>Steven</dc:creator>
				<category><![CDATA[Author's Zone]]></category>
		<category><![CDATA[brand]]></category>
		<category><![CDATA[flash components]]></category>
		<category><![CDATA[Flash developers]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[strong identity]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1038</guid>
		<description><![CDATA[A personal portfolio page is all about promoting you and your skills as a Flash developer. Here is where you show potential customers what you can do and how good you are, so they purchase your files. Also, this is where you show visitors what you're made of and use it to build your online presence. It is essential for you to have a good portfolio page if you want to get visitor's attention and, even become a brand.]]></description>
			<content:encoded><![CDATA[<p>To sell on the internet, you have to persuade visitors to take a chance. The more information you give them, the more comfortable they feel about spending money on you. You need to create a strong and trustworthy image with content that answers visitor’s questions, rather than leaving them guessing.</p>
<p>A personal portfolio page is all about promoting you and your skills as a Flash developer. Here is where you show potential customers what you can do and how good you are, so they purchase your files. Also, this is where you show visitors what you&#8217;re made of and use it to build your online presence. It is essential for you to have a good portfolio page if you want to get visitor&#8217;s attention and, even become a brand.</p>
<p>We&#8217;re going to show you how you can improve your presence on FC, build a credible image and, last but not least, get more sales.<span id="more-1038"></span></p>
<h2><span style="color: #800000;"><strong>1. Think </strong></span><span style="color: #800000;"><strong><strong>big!</strong></strong></span></h2>
<p>Think of yourself as a brand, even if you&#8217;re just starting off. Be creative with your name and logo. Don&#8217;t forget that, like on first dates, first impression matters. Like you choose a hairstylist because his hair looks fancy and well taken care of, this is how your visitors can choose you over other developers.</p>
<p>If you&#8217;re trying to promote yourself as a top-notch Flash developer, you should firstly choose a logo. You can even personalize it by including your own name. Make it attractive, yet simple and easy to remember. This will help you stand out and, also, develop a strong identity.</p>
<p>Check out these examples to get a clearer picture:</p>
<p><a href="http://www.flashcomponents.net/author/oxylus.html" target="_blank"><img title="Oxylus" src="http://www.flashcomponents.net/upload/avatars/big/194.jpg" alt="" width="124" height="124" /></a> <a href="http://www.flashcomponents.net/author/FWDesign.html" target="_blank"><img title="FWDesign" src="http://www.flashcomponents.net/upload/avatars/big/19196.jpg" alt="" width="124" height="124" /></a> <a href="http://www.flashcomponents.net/author/flashframer.html" target="_blank"><img title="FlashFramer" src="http://www.flashcomponents.net/upload/avatars/big/7015.jpg" alt="" width="124" height="124" /></a> <a href="http://www.flashcomponents.net/author/zebracreative.html" target="_blank"><img title="ZebraCreative" src="http://www.flashcomponents.net/upload/avatars/big/231.jpg" alt="" width="124" height="124" /></a></p>
<h2><span style="color: #800000;"><strong>2. Use colors and design to create your brand</strong></span></h2>
<p>Colors are essential tools to building your identity, just as logos have the same role. This is a great way to brand yourself, by using a particular color for all the files you develop. Let visitors become familiar with your color and, after a while, they&#8217;ll become more familiar and connected to you. Here&#8217;s how easy these two authors on FC are building their visual identity:</p>
<p><a href="http://www.flashcomponents.net/author/Flashtuning.html" target="_blank"><img class="alignnone size-full wp-image-1047" title="flashtuning" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/flashtuning.jpg" alt="flashtuning" width="476" height="97" /></a></p>
<p><a href=" http://www.flashcomponents.net/author/flashblue.html" target="_blank"><img class="alignnone size-full wp-image-1049" title="flashblue" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/flashblue.jpg" alt="flashblue" width="477" height="87" /></a></p>
<p><a href="http://www.flashcomponents.net/author/flashreseller.html" target="_blank"><img class="alignnone size-full wp-image-1048" title="flashreseller" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/flashreseller.jpg" alt="flashreseller" width="479" height="105" /></a></p>
<h2><span style="color: #800000;"><strong>3. Who are you?</strong></span></h2>
<p>Most of the visitors usually have a better look at your portfolio to find out who you are, where you&#8217;re from and see other samples of your work. This space is all about you and no one else. That&#8217;s why we strongly encourage you include a short presentation on yourself. This should be a short yet catchy paragraph in which you&#8217;ll have to summarize the main ideas that differentiate you from other developers. Be professional, yet personal, technical, if you need to, but clear. And remember, less is more, so don&#8217;t share your whole life.</p>
<p>Here&#8217;s a few things you could include:</p>
<p>* Who you are<br />
* Why you chose to be a Flash developer<br />
* When you started developing Flash files<br />
* Share your professional background as a Flash developer<br />
* What you specialize in: templates, galleries, etc<br />
* Where you&#8217;re from<br />
* If you&#8217;re available for freelance work.</p>
<p>Take a look at these examples:</p>
<p><a href="http://www.flashcomponents.net/author/jjletho.html" target="_blank"><img class="alignnone size-full wp-image-1043" title="jjletho" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/jjletho.jpg" alt="jjletho" width="500" height="56" /></a></p>
<p><a href="http://www.flashcomponents.net/author/oxylus.html" target="_blank"><img class="alignnone size-full wp-image-1044" title="oxylus" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/oxylus.jpg" alt="oxylus" width="504" height="150" /></a></p>
<p>This is no place to be shy or secretive. The more valuable information you include, the better your visitors will get to know you, form an opinion and trust you.</p>
<h2><strong><span style="color: #800000;">4. Organize!</span></strong></h2>
<p>Your portfolio page on FC is very important, as it&#8217;s actually a showcase of your entire work and developing skills. People will most probably want to see your other files to decide whether you&#8217;ve got potential or not. To give them a better glimpse of your work, include high-quality screenshots to present your files.</p>
<p>Also, include a short presentation for each file, emphasizing on its strongest features, the ones that differentiate it from the other files from the same category. Take your time while organizing this page as it will have impact on the visitor&#8217;s purchasing decision.</p>
<p>You don&#8217;t have to include all your files there. You can choose to include your best selling files or your best files from certain categories of Flash components, how this author did:</p>
<p><a href="http://www.flashcomponents.net/author/zebracreative.html" target="_blank"><img title="Zebracreative" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/zebra.jpg" alt="Zebracreative" width="404" height="158" /></a></p>
<h2><span style="color: #800000;"><strong>5. Provide contact options</strong></span></h2>
<p>This is also a very important thing you should keep in mind. Aside from the &#8220;Send private message&#8221; feature that your (potential) clients can use to contact you, you can also provide them with your e-mail address in case they&#8217;ve got questions or concerns regarding your files, or just want to hire you for a private project. Just include it at the end of your description.</p>
<h2><span style="color: #800000;"><strong>6. Promote Yourself</strong></span></h2>
<p>We&#8217;ve got tons of visitors but with little time on their hands. If you&#8217;re not going to show them what you&#8217;re capable of, they&#8217;re not going to search for it. If you&#8217;ve got a non-commercial portfolio or a blog where you talk about Flash or anything related, don&#8217;t just keep it to yourself. Put it out there, along with the rest of your description. Not only will this help you promote yourself, but you&#8217;ll also gain visitor&#8217;s trust as a specialist in this area and show you really know what you&#8217;re doing. Use an appropriate message to link to it, like &#8220;Hire me&#8221;, &#8220;Check out my Portfolio&#8221;, &#8220;I&#8217;m also Here&#8221; etc.</p>
<h2><span style="color: #800000;"><strong>7. Offer support on social networks</strong></span></h2>
<p>Social networks are the real deal these days. So, if you&#8217;re active on different social networks, invite people to follow you on Twitter, Facebook, LinkedIn or wherever it is that you&#8217;re hanging. Let them know you&#8217;re available to offer support whenever they need it and on whatever grounds they prefer. Let them know where they can find you, this way you can build their trust. Also, this is a great way for you to meet people, make connections and, nevertheless, expose your work.</p>
<p>We experience these things with you guys, so we&#8217;re all learning together, side by side. That&#8217;s why we&#8217;d love to receive your comments on what it is that works for you and how you managed to create your identity on FC. Send us your insights at <span style="color: #800000;">authors4fc@flashcomponents.net</span> and we&#8217;ll be sure to include them in a future article. If you&#8217;ve got some great insights, you can even write your own piece with tips&amp;tricks and we&#8217;ll publish it here. Join the club!
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-how-to-build-a-strong-identity%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-how-to-build-a-strong-identity%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fauthors-zone%2Fauthors-zone-how-to-build-a-strong-identity%2F&amp;t=Author%27s%20Zone%3A%20How%20to%20Build%20a%20Strong%20Identity%3F" id="facebook_share_button_1038" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1038') || document.getElementById('facebook_share_icon_1038') || document.getElementById('facebook_share_both_1038') || document.getElementById('facebook_share_button_1038');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1038') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/authors-zone/authors-zone-how-to-build-a-strong-identity/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to: Play a Flash Movie Backwards</title>
		<link>http://www.flashxml.com/flash-tutorials/how-to-play-a-flash-movie-backwards/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-play-a-flash-movie-backwards</link>
		<comments>http://www.flashxml.com/flash-tutorials/how-to-play-a-flash-movie-backwards/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 12:09:18 +0000</pubDate>
		<dc:creator>Phils</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[Flash Video]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[movie clip]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=1030</guid>
		<description><![CDATA[The aim of the tutorial is to learn how to make a movie play in reverse. You will also learn how to create a controller movie clip, which will give an automated instruction from one part of a Flash movie to another. This is fundamental to programming in Flash and has many uses.

You will also learn how to switch these instructions on and off. Assumed Knowledge: Tweening, use of Symbols, Layers and some Actionscript.]]></description>
			<content:encoded><![CDATA[<p>The aim of the tutorial is to learn how to make a movie play in reverse. You will also learn how to create a controller movie clip, which will give an automated instruction from one part of a Flash movie to another. This is fundamental to programming in Flash and has many uses.</p>
<p>You will also learn how to switch these instructions on and off. Assumed Knowledge: Tweening, use of Symbols, Layers and some Actionscript.<span id="more-1030"></span></p>
<p><span style="color: #800000;"><strong>Step I: Set up the Main Stage</strong></span></p>
<p><a href="http://www.flashcomponents.net/upload/userfiles/PhilS/flash/Playing%20a%20flash%20movie%20backwards/Int-106a__Backward.swf" target="_blank"><em>Example of a movie which plays in both directions.</em></a></p>
<p>1.  Create a new movie.</p>
<p>2. Rename layer 1: <strong>Car</strong></p>
<p>3. Set the size to 500 x130px in: <strong>Modify &#8211; Document</strong></p>
<p>4. Create a new symbol by going to:<strong> Insert &#8211; New Symbol</strong></p>
<p>5. For name: <strong>Car graphic</strong></p>
<p>6. For behavior: <strong>Graphic</strong></p>
<p>7. Click: <strong>OK</strong></p>
<p>8. Draw a car (or type the word car!). Alternatively copy and paste some clip art from Word, into the symbol, which is what I did. Make sure your car is facing to the right &amp;gt;.</p>
<p>9. Go back to the main stage by clicking on the scene 1 button:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/scene-1-tab.gif" alt="" /></p>
<p>10. Open your Library: <strong>Window &#8211; Library</strong><br />
11. Drag your car on to the left hand side of the stage.<br />
12. If it is too big/small resize it with the Free Transformation tool<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/free-trasformation-tool.gif" alt="" /> .<br />
13. Right click (Mac &#8211; Ctrl Click) on frame 45 and select:<strong> Insert Keyframe</strong><br />
14. With your Arrow tool<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/arrow-tool-black.gif" alt="" /> move the car, that is on frame 45, to the right hand side of the stage.<br />
15. Right click somewhere between frame 1 and 45, select: <strong>Create Motion Tween</strong></p>
<p>If you play your movie, the car should now drive from left to right. In test mode it will do this repeatedly, never going in reverse.</p>
<p><span style="color: #800000;"><strong>Step II: The Play Button</strong></span></p>
<p>1.   Click on the Insert new layer button <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/insert-layer-button.gif" alt="" />.<br />
2. Name the new layer: <strong>Play</strong><br />
3. Open the Common button Library: <strong>Window &#8211; Common Library &#8211; Buttons</strong><br />
4. In the Library, double click on the Playback folder to open it.<br />
5. Drag the <strong>gel Right</strong> button, to the right side of the stage.<br />
6. Close the Library.<br />
7. Go to frame 45 in the Play layer and right click, Select: <strong>Remove frames</strong></p>
<p>This should have removed that last frame of this layer. You do this because once the play head has reached frame 45, there are no more frames, therefore you cannot &#8216;Play&#8217; forwards, because there is nowhere to go. Removing the frame removes the button.</p>
<p><span style="color: #800000;"><strong>Step III: The Back Button</strong></span></p>
<p>1.  Click on the Insert new layer button <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/insert-layer-button.gif" alt="" />.<br />
2. Name the new layer: <strong>Back</strong><br />
3. Go to frame 2 of this layer, right click, select: <strong>Insert Blank Keyframe</strong><br />
You place the back button in frame 2 for the same reason that you removed the last frame of the play layer, except the play head will be going in reverse. If the play head is on frame 1, you cannot go backwards.<br />
4. Open the Common button Library: <strong>Window &#8211; Common Library &#8211; Buttons</strong><br />
5. In the Library, double click on the Playback folder to open it.<br />
6. Drag the <strong>gel left</strong> button, to the left side of the stage.<br />
7. Close the Library.</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/01-layers.gif" alt="" /></p>
<p><em>Your layers and stage will look similar to this, depending on what frame the red play head is in.</em></p>
<p>The play head above is in frame 2. You can see both buttons</p>
<p>If you are in frame 1, you should only be able to see the play button on the right.<br />
If you are in frame 45, you should only be able to see the back button on the left, and the car will be on the left.</p>
<p><span style="color: #800000;"><strong>Step IV: Stopping the Auto Play</strong></span></p>
<p>1.  Save the movie.<br />
2. Go to: <strong>Movie &#8211; Test Movie</strong><br />
3. The car should be going continuously from left to right, with the buttons momentarily disappearing.<br />
4. Close the test window by clicking the second cross on the top right (maybe in a different place).<br />
5. Right click on frame 1, layer Car, select: <strong>Actions</strong><br />
6. Select:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /> &#8211; <strong>Actions &#8211; Movie Control &#8211; Stop</strong><br />
7. Do the same thing for frame: <strong>45</strong></p>
<p><strong>The Controller Movie Clip</strong></p>
<p>Up until now everything you have done is standard Flash construction. The problem with making a movie play in reverse is that there is no:</p>
<p><em>playReverse(); </em>Do not use &#8211; does not work !</p>
<p>At least as far as I am aware there is no play in reverse command! I don&#8217;t no why not, it seems an obvious option. Macromedia, are you listening!</p>
<p>There is the following script:</p>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">prevFrame</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<p>This is all very well, but it only goes back one frame and stops. You would have to click the back button 44 times to get back to frame 1!</p>
<p>A <strong>Controller Movie Clip</strong> is the answer. That is a piece of actionscript that when you click the back button repeatedly says <em>prevFrame(); prevFrame(); prevFrame();</em> etc. Until you get to frame one then the controller says nothing. In other words you need to be able to switch the instruction on and off. If you could not switch it on and off, when you hit the play button, one bit of script would be saying <em>prevFrame();</em> and another would say <em>play();</em>. This would cause an obvious conflict.</p>
<p>The controller has to be able to be:</p>
<p>* Switched on<br />
* Repeat an instruction innumerable times<br />
* Switched off</p>
<p>To be able to do this, is absolutely crucial to Flash programming. Here we are going to get a movie to play backwards, but this same principle can be used in hundreds of different ways. At the end of this tutorial you will find links to sample files that use the same system of a controller movie clip to give instructions in a variety of different circumstances.</p>
<p><span style="color: #800000;"><strong>Step V: The Controller Movie Clip &#8211; Frame 1</strong></span></p>
<p>You should not build a controller on the main stage because that limits your ability to switch it on and off.</p>
<p>1. Create a new symbol by going to: <strong>Insert &#8211; New Symbol</strong><br />
2. For name: <strong>Controller MC</strong><br />
3. For behavior: <strong>Movie Clip</strong><br />
4. Click:<strong> OK</strong><br />
5. Right click on frame 1 and select: <strong>Actions</strong><br />
6. Select:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /> <strong>- Actions &#8211; Movie Control &#8211; Stop</strong><br />
This is the off position. The movie clip does not go to frame 2, there are no instructions. It is dormant.</p>
<p><span style="color: #800000;"><strong>Step VI: The Controller Movie Clip &#8211; Frame 2</strong></span></p>
<p>1.  Right click on frame 2 and select: <strong>Insert Blank Keyframe</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/02-timeline.gif" alt="" />Your time line should look like this.<br />
2. Right click on frame 2 and select: <strong>Actions</strong><br />
3. Make sure the Actions panel is set to Normal.<br />
You do this by clicking on the side menu button ( <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/side-menu-button.gif" alt="" />). Select Normal.<br />
4. Select: <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /><strong>- Actions &#8211; Movie Control &#8211; Goto</strong><br />
5. In the options above select: Type &amp;gt; Previous Frame<br />
This will place the following script:</p>
<p><code><span style="color: #0066cc;">prevFrame</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;</code></p>
<p>This is no good, as it will go to the previous frame of this movie clips time line rather than the main time line on the main stage.<br />
6. Change the Actions panel to: <strong>Expert mode</strong><br />
Click on the side menu button ( <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/side-menu-button.gif" alt="" />). Select Expert.<br />
7. In front of the <em>prevFrame();</em> type: <em>_root</em>. (The dot is not a full stop, you need to type it!)<br />
Your script will look like this:</p>
<p><code><span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">prevFrame</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;</code></p>
<p>This will instruct the main stage the (root directory) to go back a frame. But it will only go back one frame!</p>
<p><span style="color: #800000;"><strong>Step VII: The Controller Movie Clip &#8211; Frame 3</strong></span></p>
<p>1.  Right click on frame 3 and select: <strong>Insert Blank Keyframe</strong><br />
2. Right click on frame 3 and select: <strong>Actions</strong><br />
3. Select:<strong><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /> &amp;gt; Actions &amp;gt; Movie Control &amp;gt; gotoAndPlay</strong><br />
4. For the frame option type: <strong>2</strong><br />
Your script should look like this:</p>
<p><code><span style="color: #0066cc;">gotoAndPlay</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">)</span>;</code><br />
<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/03-timeline.gif" alt="" /></p>
<p>Your time line should look like this.</p>
<p><span style="text-decoration: underline;"><strong>The loop</strong></span></p>
<p>In the above script <em>gotoAndPlay(2);</em> there is no <em>_root</em>. That means that the script will go to frame 2 of the current time line: The Controller movie clip</p>
<p>Which is what we want. So the playhead to goes back to frame 2, this will repeat the instruction on frame 2 (<em>_root.prevFrame();</em>). The play head in the main time line will go back one frame.</p>
<p>Our controller movie clip will continue to play to frame 3, as there is no instruction for it to stop.</p>
<p>In frame 3 of Controller, is an instruction to go and play frame 2 (<em>gotoAndPlay(2);</em>). The play head in the controllers time line will go and play frame 2.</p>
<p>This will repeat the instruction to move the playhead in the main time line back one frame.</p>
<p>The loop goes on indefinitely.In other words it will make the main timeline play continuously backwards.</p>
<p><strong>Frame 1</strong>: Controller is switched off.<br />
<strong>Frame 2</strong>: Instructs the main time line to go back one frame.<br />
<strong>Frame 3</strong>: Instructs frame 2 to repeat it&#8217;s instructions.<br />
<span style="text-decoration: underline;"><strong><br />
Switching the loop off/on</strong></span></p>
<p>There are a number of ways to switch a controller on and off. We will switch it on with the back button. To switch it off we will do two things. Use the play button and also remove it from the main time line in frame 1, which will zap it into nonexistence.</p>
<p>You can also switch controllers on and off with instructions in the main time.</p>
<p><span style="color: #800000;"><strong>Step VIII: Setting up the Controller on the Main Stage</strong></span></p>
<p>1.  Go back to the main stage by clicking on the scene 1 button:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/scene-1-tab.gif" alt="" /><br />
2. Open your Library: <strong>Window &#8211; Library</strong><br />
3. Select frame 2, Back layer.<br />
4. Drag your Controller MC onto the stage.<br />
You can put it any place you like as it is invisible when you test the movie or view it in a web page. In Flash, an invisible Movie Clip looks like this:<br />
If it is highlighted it will have a cross in the middle.</p>
<p>By placing the controller in frame 2, it does not exist in frame 1.</p>
<p>If the controller has been looping, and the main time line going backwards, when the main play head reaches frame 1 the controller does not exist. The loop will have stopped. If the viewer clicks on the play button, the play head on the main stage will go to frame 2 and play. The controller play head will be by default on frame 1. As there is a &#8217;stop&#8217; in that frame the loop does not play.<br />
5. For the back button to instruct the controller to play, the controller must have a name. If the controller is not selected, click on it with the Arrow tool <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/arrow-tool-black.gif" alt="" />.<br />
6. Open the Property panel: <strong>Window &#8211; Properties</strong><br />
7. Where it says Instance Name, type: <strong>control</strong></p>
<p>The controller is now ready for action.</p>
<p><span style="color: #800000;"><strong>Step IX: Actionscript for the Back Button</strong></span></p>
<p>1.  Right click on the back button on the left.<br />
2. Select: <strong>Actions</strong><br />
3. Set the Actions Panel to: <strong>Normal Mode</strong><br />
4. Select:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /> -<strong> Actions &#8211; Movie Control &#8211; Goto</strong><br />
5. In the frame option above type: <strong>2</strong><br />
Your script will look like this:</p>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">gotoAndPlay</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<p>This of course refers to the main time line not the controller, we need to change this.<br />
6. Set the Actions Panel to: <strong>Expert Mode</strong><br />
7. Type the target path:</p>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">control</span>.<span style="color: #0066cc;">gotoAndPlay</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>
<p><span style="color: #800000;"><strong>Step X: Play Button Actions</strong></span></p>
<p>1.  Move the play head to frame 1.<br />
2. Right click on the play button on the right, select: <strong>Actions</strong><br />
3. Make sure the Actions panel is set to Normal.<br />
You do this by clicking on the side menu button (<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/side-menu-button.gif" alt="" /> ). Select Normal.<br />
4. Select:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /> <strong>- Actions &#8211; Movie Control &#8211; Play</strong><br />
The following actionscript will be attached to the button.</p>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">play</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<p>We will now add a line which will switch the controller off. This is important, because is the viewer clicks the play button before the car gets back to frame 1, the car will play, go forwards, the controller will instruct the car to go back and it will start to reverse again.<br />
5. You may want to save and test the movie at this stage. Make sure you click the buttons before the car gets to the ends. The reverse button should always work, the play button will not, unless the car has got back to frame1.<br />
6. If you have closed the Actions panel, right click on the play button, select: <strong>Actions</strong><br />
7. Click on the line of script: <em>play()</em>;<br />
This selects the line and ensures that the next line of script goes in the correct place.<br />
8. Select:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/playing%20a%20flash%20movie%20backwards/plus-actions-button.gif" alt="" /><strong> &#8211; Actions &#8211; Movie Control &#8211; Goto</strong><br />
9. In the options above select: <strong>Goto and Stop</strong><br />
10. Go to expert mode.<br />
11. In front of the <em>gotoAndStop</em> type:<em> _root.control.</em></p>
<p>Your actionscript should look like this:</p></div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">play</span><span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">control</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<p>12. Your movie is now ready to save and test!</p>
<p><em>Source</em>: <a href="http://www.webwasp.co.uk/" target="_blank">http://www.webwasp.co.uk/</a></div>
</div>
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-play-a-flash-movie-backwards%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-play-a-flash-movie-backwards%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-play-a-flash-movie-backwards%2F&amp;t=How%20to%3A%20Play%20a%20Flash%20Movie%20Backwards" id="facebook_share_button_1030" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_1030') || document.getElementById('facebook_share_icon_1030') || document.getElementById('facebook_share_both_1030') || document.getElementById('facebook_share_button_1030');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1030') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/how-to-play-a-flash-movie-backwards/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to: Create a Flash Menu with Swings In&amp;Out</title>
		<link>http://www.flashxml.com/flash-tutorials/how-to-create-a-flash-menu-with-swings-inout/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-create-a-flash-menu-with-swings-inout</link>
		<comments>http://www.flashxml.com/flash-tutorials/how-to-create-a-flash-menu-with-swings-inout/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 12:56:23 +0000</pubDate>
		<dc:creator>Phils</dc:creator>
				<category><![CDATA[Flash Menus]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash menu]]></category>
		<category><![CDATA[flash tutorial]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ste-by-step]]></category>
		<category><![CDATA[swings]]></category>

		<guid isPermaLink="false">http://www.flashxml.com/?p=978</guid>
		<description><![CDATA[This is a complete, step-by-step tutorial that will help you create a cool Flash menu with swings in and out.]]></description>
			<content:encoded><![CDATA[<p>This is a complete, step-by-step tutorial that will help you create a cool Flash menu with swings in and out. After you finish it, this is how it will look:</p>
<p><a href="http://www.flashcomponents.net/upload/userfiles/PhilS/flash/Menu%20that%20swings%20in/Int-104a__Swing-Menu.swf" target="_blank"><img class="alignnone size-full wp-image-979" title="menu" src="http://www.flashxml.com/wordpress/wp-content/uploads/2010/01/menu.jpg" alt="menu" width="304" height="146" /></a></p>
<p>Don&#8217;t be scared if it&#8217;s pretty long, as it includes every step in the book so you can understand better how to create the menu. Here we go!<span id="more-978"></span></p>
<p><strong>Direction X or Y:</strong><br />
It is easy to change the code so that every thing moves from the top. All you need to do is swap the X values for Y values:</p>
<p><a href="http://www.flashcomponents.net/upload/userfiles/PhilS/flash/Menu%20that%20swings%20in/Int-104d__Swing-Menu.swf" target="_blank"><em>Menu come in from the top on the Y axis&#8217;s. </em></a></p>
<h1><span style="color: #800000;">Step I: Setting up the Document</span></h1>
<p>1.  Open a New Flash Document: <strong>File &#8211; New </strong>(Ctrl N)<br />
2. If the General Tab is not selected, select it: <strong>General Tab</strong><br />
3. Select Flash Document:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Flash-Document_F8.gif" alt="" /><br />
4. Click: <strong>OK</strong></p>
<p><strong>Note</strong>: You should now be able to see a new Flash document.</p>
<p>5. Go to: <strong>Modify &#8211; Document</strong> (Ctrl J)<br />
6. Set the size to: <strong>525 x 200 px</strong><br />
7. Select a: <strong>Background colour</strong></p>
<p>I selected: <strong>003366</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Menu_Flash.gif" alt="" /><br />
<em>My background Colour.</em></p>
<p>8. Click: <strong>OK</strong></p>
<h1><strong> </strong><span style="color: #800000;"><strong>Step II: Creating the Menu Bar</strong></span></h1>
<p>1.  In the Timeline rename Layer 1 to: <strong>Menu Bar</strong></p>
<p>2. Using the rectangle tool<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/rectangle-tool_MX04.gif" alt="" /> on the left off the Stage draw a long: <strong>Rectangle</strong><br />
3. With the Text Tool type: <strong>Menu</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Menu_Bar.gif" alt="" /></p>
<p>4. I added a triangle to my Menu:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/triangle.gif" alt="" /><br />
<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Bar_-_Menu.gif" alt="" /></p>
<p>5. With the Free Transformation Tool<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/free-transform-tool_MX04.gif" alt="" /> : <strong>Rotate the Menu Bar</strong></p>
<p><em><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Bar_Menu.gif" alt="" /><br />
The rotated Menu Bar in the correct position.</em></p>
<p>6. In the Timeline right click (Mac: Ctrl click) on Frame 55 and select: <strong>Insert Frame</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Timeline.gif" alt="" /></p>
<p><strong>Note</strong>: These 55 frames are included so that the Menu Bar will be visible throughout the entire Movie. At this stage, the Movie has no content, but we will add content in the following steps. If your content exceeds 55 frames, you will need to return to this Layer and add additional frames to ensure that the Menu Bar is visible throughout the Movie.</p>
<h1><span style="color: #800000;"><strong>Step III: Creating the Graphics</strong></span></h1>
<p>1. To avoid errors lock the Menu Bar Layer:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" /><br />
2. Click on the Insert Layer button:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/insert-layer_MX04.gif" alt="" /><br />
3. Rename the new Layer to: <strong>Graphics</strong><br />
4. Place any graphics or text that you may want:</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/graphics-f1.gif" alt="" /><br />
<em>My Graphics Layer looks like this.</em></p>
<p>5. In <strong>Frame 10</strong> of the <strong>Graphics Layer</strong>, right click and select: <strong>Insert Blank KeyFrame</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Timeline-2.gif" alt="" /><br />
<em>Your Layers should look like this.</em></p>
<p><strong>Note</strong>: This new Keyframe will contain the content of Menu item one. The new Keyframe does not need to be in Frame 10 but could be on the next unused Frame, which is Frame 2. I have selected to use Frame 10 so that Button 1 will match Frame 10 and Button 2 will match Frame 20 etc. An alterative would be to use Frame Labels (which I do not cover in this tutorial).</p>
<p>6. In <strong>Frame 10</strong> place any graphics or text that you want to be visible when the first Button is clicked:</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/graphics-one.gif" alt="" /><br />
<em>My Graphics Layer looks like this. I painted the word <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/01.gif" alt="" />using the <strong>Brush</strong> <strong>Tool</strong>.</em></p>
<p>7. Repeat five times what you have just done with different graphics for frame 20, frame 30, frame 40 &amp;amp; frame 50.</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/graphics-five%281%29.gif" alt="" /><br />
<em>My Graphics Layer and Timeline Keyframes.</em></p>
<p>8. To avoid errors lock the Graphics Layer: <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" /></p>
<h1><span style="color: #800000;"><strong>Step IV: Creating the Buttons</strong></span></h1>
<p>1.  Go to: <strong>Insert &#8211; New Symbol </strong>(Ctrl F8)<br />
2. Name it: <strong>Button 1</strong><br />
3. For Type select: <strong>Button</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/button-symbol.gif" alt="" /></p>
<p>4. Click: <strong>OK</strong></p>
<p>5. Draw a small: <strong>Rectangle</strong><br />
6. Type a label on it such as: <strong>Button 1</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/symbol-button.gif" alt="" /><br />
<em>My Button.</em></p>
<p><strong>Note</strong>: Make sure your text and your rectangle are different colours!!</p>
<p>7. Repeat what you have done to create: <strong>Button 2 through to Button 6</strong></p>
<p><strong>Note</strong>: My last button returns the user back to the starting point so I have typed <strong>Home</strong> as the Label.</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/home-bitton.gif" alt="" /><br />
<em>My six buttons.</em></p>
<p>8. When you have finished your Buttons go back to the Main Stage by clicking on the Tab:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/scene-1-tab_MX04.gif" alt="" /></p>
<p><strong>Note</strong>: Do not place your buttons on the Main Stage. If you have delete them (don&#8217;t worry they still in the Library).</p>
<h1><span style="color: #800000;"><strong>Step V: Adding the Menu</strong></span></h1>
<p>1.  Go to: <strong>Insert &#8211; New Symbol</strong> (Ctrl F8)<br />
2. Name the Symbol: <strong>Menu 1 MC</strong><br />
3. The Type should be: <strong>Movie Clip</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Menu-MC1.gif" alt="" /></p>
<p>4. Click: <strong>OK</strong></p>
<p>5. Open your Library: <strong>Window &#8211; Library </strong>(F11)<br />
6. Drag <strong>Button 1</strong> into the new Symbol: <strong>Menu 1 MC</strong><br />
<em><br />
<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/menu_1_mc.gif" alt="" /><br />
My Menu 1 MC with the Button nested inside the Movie Clip.</em></p>
<p>7. Repeat what you have done to create:</p>
<p><strong>Note</strong>: All your symbols are still in the Library, none of them have yet been placed on the Main Stage.</p>
<p><em><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Library.gif" alt="" /></em></p>
<p><em>*All the Symbols in the Library.</em></p>
<h1><span style="color: #800000;"><strong>Step VI: Placing the Menu</strong></span></h1>
<p>1.  When you have finished go back to the Main Stage by clicking on the Tab:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/scene-1-tab_MX04.gif" alt="" /><br />
2. If your Graphics Layer is not locked, lock it:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" /><br />
3. Click on the Insert Layer button:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/insert-layer_MX04.gif" alt="" /><br />
4. Rename the new Layer to: <strong>Buttons</strong><br />
5. If your Library is closed, open it: <strong>Window &#8211; Library</strong> (F11)<br />
6. Drag from the Library on to the Stage all your: <strong>Movie Clips</strong> (Not the Buttons)<br />
7. Position the Movie Clips to the Left and just: <strong>Off Stage</strong><br />
8. You may want to use your Align Panel to get them in a straight line and spaced evenly: <strong>Window &#8211; Align</strong> (Ctrl K)</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/menu_buttons.gif" alt="" /><br />
<em>The Movie Clips are on the left and are just off stage.</em></p>
<p>9. If the Property Inspector is closed, open it: <strong>Window &#8211; Properties </strong>(Ctrl F3)<br />
10. Select the first Movie Clip and give it an Instance Name of: <strong>MC1</strong></p>
<p><strong>Note</strong>: Do not type a space between the MC and the 1. It must be one word: MC1</p>
<p><em><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Properties_MC1.gif" alt="" /><br />
The Instance Name for:MC</em><strong><em>1</em></strong></p>
<p>11. Give as Instance Name the next Movie Clip: <strong>MC2</strong><br />
12. Give Instance Names to the rest of the buttons: <strong>MC3</strong> etc.</p>
<p>13. You may need to re-arrange the order of the Layers. They should look like this:</p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/layer-order.gif" alt="" /><br />
<em>The Layer Order has been changed.</em></p>
<p><strong>Note</strong>: The Menu Bar needs to cover the Buttons which is why it is the top Layer. The Buttons should swing onto the Stage over the Graphics.</p>
<h1><span style="color: #800000;"><strong>Step VII: ActionScript for the Timeline</strong></span></h1>
<p>The following Actionscript will make the first button move. There is additional code that makes the other buttons follow the first button, a bit like follow the leader.</p>
<p>1. To avoid errors lock the Buttons Layer:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" /><br />
2. Click on the Insert Layer button:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/insert-layer_MX04.gif" alt="" /><br />
3. Rename the new Layer to: <strong>Actions</strong><br />
4. Place the following ActionScript on <strong>Frame 1</strong> in the: <strong>Actions Layer</strong></p>
<p>// stops the movie on frame 1<br />
<span style="color: #3366ff;">stop</span><span style="color: #339966;">()</span>;</p>
<p>// sets the x position for the menu to stop and go back to. You may need to adjust these two settings<br />
<code><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066cc;">goto</span> = <span style="color: #cc66cc;">30</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> backto = <span style="color: #cc66cc;">-80</span>;</code></p>
<p style="text-align: justify;">// declares a variable called go which will be used to help create the movement<code><span style="color: #000000; font-weight: bold;"> </span></code><code><span style="color: #000000; font-weight: bold;"> </span></code></p>
<p style="text-align: justify;"><code><span style="color: #000000; font-weight: bold;">var</span> go = <span style="color: #cc66cc;">0</span>;</code></p>
<p style="text-align: justify;">
<p style="text-align: justify;">// sets the speed &#8211; don&#8217;t set it too slow</p>
<p style="text-align: justify;"><code><span style="color: #0066cc;">setInterval</span><span style="color: #66cc66;">(</span>mousePosition, <span style="color: #cc66cc;">5</span><span style="color: #66cc66;">)</span>;</code></p>
<p style="text-align: justify;">
<p style="text-align: justify;">// this function is called by the word &#8216;mousePosition&#8217; in the setInterval above</p>
<div><code><span style="color: #000000; font-weight: bold;">function</span> mousePosition<span style="color: #66cc66;">(</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #808080; font-style: italic;">// sets the x position for the mouse to activate the menu movement</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">(</span>_xmouse&lt;=<span style="color: #cc66cc;">20</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span> <span style="color: #808080; font-style: italic;">//adjust number as necessary</span><br />
MC1.<span style="color: #0066cc;">_x</span> = MC1.<span style="color: #0066cc;">_x</span>+bounce<span style="color: #66cc66;">(</span>"right"<span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">(</span>_xmouse&gt;=<span style="color: #cc66cc;">110</span><span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span> <span style="color: #808080; font-style: italic;">//adjust number as necessary</span><br />
MC1.<span style="color: #0066cc;">_x</span> = MC1._x-bounce<span style="color: #66cc66;">(</span>"left"<span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span><br />
<span style="color: #66cc66;">}</span></code></div>
<div>// this function is called by &#8216;bounce&#8217; in the mousePosition function above</div>
<div><code><span style="color: #000000; font-weight: bold;">function</span> bounce<span style="color: #66cc66;">(</span>leftOrRight<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #808080; font-style: italic;">// sets the swing properties</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">(</span>leftOrRight == "right"<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
go = <span style="color: #66cc66;">(</span>goto-MC1.<span style="color: #0066cc;">_x</span><span style="color: #66cc66;">)</span>;<br />
go *= .<span style="color: #cc66cc;">09</span>;<br />
<span style="color: #66cc66;">}</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">(</span>leftOrRight == "left"<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
go -= <span style="color: #66cc66;">(</span>backto-MC1.<span style="color: #0066cc;">_x</span><span style="color: #66cc66;">)</span>;<br />
go *= .<span style="color: #cc66cc;">09</span>;<br />
<span style="color: #66cc66;">}</span><br />
<span style="color: #b1b100;">return</span> go;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>5. Test Your Movie: <strong>Control &#8211; Test Movie</strong> (Ctrl + Enter)<br />
6. Place the Mouse over the: <strong>Menu bar</strong></p>
<p><em><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Test-Window.gif" alt="" /><br />
So far only the first Button works.</em></p>
<p><strong>Note</strong>: Only one Button will work. To make the rest of the Buttons work there one more step.</p>
<p>7. Close the Test Window:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/cross-red-white_MX04.gif" alt="" /></div>
<div>
<h1><span style="color: #800000;"><strong>Step VIII: ActionScript for the Movie Clips</strong></span></h1>
<p>The ActionScript below makes sure that the Movie Clips follow the lead of Movie Clip 1.<br />
1. <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" />Lock the: <strong>Actions Layer</strong><br />
2. <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/lock_MX04.gif" alt="" />Unlock the: <strong>Buttons Layer</strong><br />
3. Open the Actions Panel: <strong>Window &#8211; Actions </strong>(Ctrl F7)<br />
4. Switch Script Assist off. Go to the Actions Panel Side Menu Button:   <img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Corner-Button_F8.gif" alt="" /></p>
<p><strong>Script Assist</strong> is <strong>off</strong> when there is: No Tick</p>
<p>5. Select <strong>Movie Clip 2</strong></p>
<p><strong>Tip</strong>: In the top left of the Actions Panel you must be able to read:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Actions-MC.gif" alt="" /></div>
<div>6. Attach the following to <strong>Movie Clip 2</strong>:</div>
<div>
<div><code><span style="color: #0066cc;">onClipEvent</span> <span style="color: #66cc66;">(</span>enterFrame<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_x</span> = <span style="color: #0066cc;">_root</span>.<span style="color: #006600;">MC</span>&lt;b&gt;<span style="color: #cc66cc;">1</span>&lt;/b&gt;.<span style="color: #0066cc;">_x</span>; <span style="color: #808080; font-style: italic;">// button 2 refers back to button 1</span><br />
<span style="color: #66cc66;">}</span></code></div>
<div>7. Select <strong>Movie Clip 3 </strong>and attach the code:</div>
</div>
<div>
<div><code><span style="color: #0066cc;">onClipEvent</span> <span style="color: #66cc66;">(</span>enterFrame<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_x</span> = <span style="color: #0066cc;">_root</span>.<span style="color: #006600;">MC</span>&lt;b&gt;<span style="color: #cc66cc;">2</span>&lt;/b&gt;.<span style="color: #0066cc;">_x</span><br />
<span style="color: #66cc66;">}</span></code></div>
<div>8. Select <strong>Movie Clip 4</strong> and attach the code:</div>
</div>
<div>
<div><code><span style="color: #0066cc;">onClipEvent</span> <span style="color: #66cc66;">(</span>enterFrame<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_x</span> = <span style="color: #0066cc;">_root</span>.<span style="color: #006600;">MC</span>&lt;b&gt;<span style="color: #cc66cc;">3</span>&lt;/b&gt;.<span style="color: #0066cc;">_x</span><br />
<span style="color: #66cc66;">}</span></code></div>
<div>9. Select <strong>Movie Clip 5</strong> and attach the code:</div>
</div>
<div>
<div><code><span style="color: #0066cc;">onClipEvent</span> <span style="color: #66cc66;">(</span>enterFrame<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_x</span> = <span style="color: #0066cc;">_root</span>.<span style="color: #006600;">MC</span>&lt;b&gt;<span style="color: #cc66cc;">4</span>&lt;/b&gt;.<span style="color: #0066cc;">_x</span><br />
<span style="color: #66cc66;">}</span></code></div>
<div>10. Select <strong>Movie Clip 6</strong> and attach the code:</div>
</div>
<div>
<div><code><span style="color: #0066cc;">onClipEvent</span> <span style="color: #66cc66;">(</span>enterFrame<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_x</span> = <span style="color: #0066cc;">_root</span>.<span style="color: #006600;">MC</span>&lt;b&gt;<span style="color: #cc66cc;">5</span>&lt;/b&gt;.<span style="color: #0066cc;">_x</span><br />
<span style="color: #66cc66;">}</span></code></div>
</div>
<div><strong>Note</strong>:<br />
The code for MC <strong>2</strong> refers back to MC <strong>1</strong>,<br />
The code for MC <strong>3</strong> refers back to MC <strong>2</strong>,<br />
The code for MC<strong>4</strong> refers back to MC<strong>3</strong>,<br />
etc.</p>
<p>11. Test Your Movie: <strong>Control &#8211; Test Movie </strong>(Ctrl + Enter)<br />
12. Place the Mouse over the: <strong>Menu bar</strong></p>
<p><img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Menu-works.gif" alt="" /><br />
<em>All the Buttons works.</em><br />
13. Close the Test Window:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/cross-red-white_MX04.gif" alt="" /></div>
<div>
<h1><span style="color: #800000;"><strong>Step IX: Making the Menu Buttons Work</strong></span></h1>
<p>Although the Menu should now be working correctly the Buttons don&#8217;t actually function. This last section will make them function correctly</p></div>
<div>1.Open <strong>MC1</strong> by double clicking on: <strong>Movie Clip 1</strong><br />
2. Select: <strong>Button 1</strong></p>
<p><strong>Tip</strong>: In the top left of the Actions Panel you must be able to read:<br />
<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/Actions-Button.gif" alt="" /><br />
3. Place the following code on: <strong>Button 1</strong></div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>4. Place the following code on: <strong>Button 2</strong></div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">20</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>5. Place the following code on:<strong> Button 3</strong></div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">30</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>6. Place the following code on:<strong> Button 4</strong></div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">40</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>7. Place the following code on: <strong>Button 5</strong></div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>8. Place the following code on: <strong>Button 6</strong></p>
<p>// Note this goes back to frame 2 which is the first real frame or Home Page</p></div>
</div>
<div>
<div><code><span style="color: #0066cc;">on</span> <span style="color: #66cc66;">(</span>release<span style="color: #66cc66;">)</span> <span style="color: #66cc66;">{</span><br />
<span style="color: #0066cc;">_root</span>.<span style="color: #0066cc;">gotoAndStop</span><span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">)</span>;<br />
<span style="color: #66cc66;">}</span></code></div>
<div>
<p>9. Test Your Movie: <strong>Control &#8211; Test Movie </strong>(Ctrl + Enter)</p>
<p>10. Place the Mouse over the: <strong>Menu bar</strong><br />
<strong>Note</strong>: All your Buttons should now work.<br />
11. Close the Test Window:<img src="http://www.flashcomponents.net/upload/userfiles/PhilS/image/Menu%20that%20swings%20in/cross-red-white_MX04.gif" alt="" /><br />
Your Movie should have a Menu that swings in with buttons that go to different locations in your Flash Movie. I hope you found this tutorial useful and easy to follow.<br />
<em>Source</em>: <a href="http://www.webwasp.co.uk/tutorials/b04-menu-swing/index.php" target="_blank">Webwasp Tutorials</a></div>
</div>
<div>
<p>I&#8217;ve also created a wide range of tutorials, from mouse trail animations and magnifying glass, to user names and passwords and word games. You can check them out <a href="http://www.flashcomponents.net/author/PhilS.html" target="_blank"><strong>here</strong></a>.</div>
</div>
</div>
</div>
<div class="tweetmeme_button" style="margin: 6px 0; float: left;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-create-a-flash-menu-with-swings-inout%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-create-a-flash-menu-with-swings-inout%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.flashxml.com%2Fflash-tutorials%2Fhow-to-create-a-flash-menu-with-swings-inout%2F&amp;t=How%20to%3A%20Create%20a%20Flash%20Menu%20with%20Swings%20In%26Out" id="facebook_share_button_978" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	var button = document.getElementById('facebook_share_link_978') || document.getElementById('facebook_share_icon_978') || document.getElementById('facebook_share_both_978') || document.getElementById('facebook_share_button_978');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_978') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.flashxml.com/flash-tutorials/how-to-create-a-flash-menu-with-swings-inout/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
