<?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>Free Flash Tutorials at FlashMint Tuts &#187; flashmovie</title>
	<atom:link href="http://tuts.flashmint.com/tag/flashmovie/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts.flashmint.com</link>
	<description>Advanced Flash Tutorials and tips</description>
	<lastBuildDate>Wed, 17 Mar 2010 14:16:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Advanced Preloader with Reflection</title>
		<link>http://tuts.flashmint.com/advanced-preloader-with-reflection/</link>
		<comments>http://tuts.flashmint.com/advanced-preloader-with-reflection/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 12:52:42 +0000</pubDate>
		<dc:creator>Dan Doicaru</dc:creator>
				<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[action script]]></category>
		<category><![CDATA[flashmovie]]></category>
		<category><![CDATA[movieclips]]></category>

		<guid isPermaLink="false">http://tuts.flashmint.com/?p=36</guid>
		<description><![CDATA[In this tutorial we will create an advanced blue preloader with beautiful reflection effect and a big easing text. This requires a little knowledge about animations and action scripting. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://tuts.flashmint.com/wp-content/uploads/preview1.jpg"><img class="alignleft size-full wp-image-59" title="preview1" src="http://tuts.flashmint.com/wp-content/uploads/preview1.jpg" alt="preview1" width="200" height="200" style="border: 5px solid #d5d5d5" /></a></p>
<p>In this tutorial we will create an advanced blue preloader with beautiful reflection effect and a big easing text. This requires a little knowledge about animations and action scripting.<br />
<span id="more-36"></span></p>
<div class="fixed"></div>
<p><strong>About the Author:</strong><br />
Hi. I`m Danny, a freelancer web developer from Romania and I like to write interesting tutorials in Flash and Photoshop. You can visit my website for more great and useful tutorials: <a href="http://www.extremestudio.ro/" target="_blank">Extreme Design Studio</a>.<br/><br/></p>
<h1>Advanced Preloader with Reflection</h1>
<p><br/><br/><br />
<strong style="font-size:24px">Step 1</strong></p>
<p>Create a new file with Action Script 2.0 and go to Modify – Document (CTRL+J) and do the settings below:</p>
<p style="text-align: center;"><img class="size-full wp-image-39 aligncenter" title="1" src="http://tuts.flashmint.com/wp-content/uploads/1.jpg" alt="1" width="500" height="400" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED"/></p>
<p>Import to scene (CTRL+R) the two main images <em>bar.png</em> and <em>bar_h.png</em> and put the half bar under the full bar and align them to middle. Right click on each object and convert it to a movieclip (F8) and rename the first layer to <em>preloader </em>and apply the glow filter and set the alpha to 50.</p>
<p style="text-align: center;"><img class="size-full wp-image-40 aligncenter" title="2" src="http://tuts.flashmint.com/wp-content/uploads/2.jpg" alt="2" width="500" height="300" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED"/></p>
<p style="text-align: left;"><strong style="font-size:24px">Step 2</strong></p>
<p style="text-align: left;">Select both bars and press F8 to convert them in a single movieclip. Double click the object. Inside the movieclip will be the main animation. Now select again the two bars and press F8 to convert them in a single movieclip. Repeat this once more to have the possibility to set the alpha to 0 for the both bars.</p>
<p>Double click again on the movieclip and now you must be inside of a two movieclips. Very good. Now insert a keyframe (F6) on the frame 10 then right click on the frame 1 and select <em>Create Motion Tween</em>. Select frame 1 and click on your object. In the Properties Panel you will find the option Color and set it to Alpha 0.</p>
<p>Ok now we have the animation for our bars. Right click on the frame 20 and select Action (F9) and write <strong>stop()</strong>;</p>
<p style="text-align: center;"><img class="size-full wp-image-41 aligncenter" title="3" src="http://tuts.flashmint.com/wp-content/uploads/3.jpg" alt="3" width="500" height="430" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED" /></p>
<p><strong style="font-size:24px">Step 3</strong><br />
On the timeline bar click on the second movieclip to return. On the image above the second movieclip is named as <em>Symbol 5</em>. Double click Layer 1 icon and mark <em>View layer as outlines</em> and rename it to <em>bars</em>.</p>
<p>Insert a keyframe on the frame 3 and copy your bar (CTRL+C) and paste in place (CTRL+SHIFT+V) and move it with 10 pixels using SHIFT + Right Arrow.</p>
<p>Repeat this step for every uneven frame (Frame 5 &#8211; 3 bars, Frame 7 &#8211; Frame 4 bars&#8230; until you reach frame 100).<br />
You don&#8217;t need to make 50 bars. Try to insert 2 or 3 frames until you reach frame 100. See the picture below:</p>
<p style="text-align: center;"><img class="size-full wp-image-42 aligncenter" title="4" src="http://tuts.flashmint.com/wp-content/uploads/4.jpg" alt="4" width="500" height="300" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED"/></p>
<p><strong style="font-size:24px">Step 4</strong><br />
Insert a new layer and rename it to <em>percent</em>. With the Text Tool (T) create a text<em> 100%</em>. Use Arial font with size 50 and left aligned. Instance field should be <em>txt_mc </em>and var field should be <em>txt </em>and don&#8217;t forget to <em>embed numerals and punctuations</em>.</p>
<p style="text-align: center;"><img class="size-full wp-image-43 aligncenter" title="5" src="http://tuts.flashmint.com/wp-content/uploads/5.jpg" alt="5" width="500" height="300" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED"/></p>
<p><strong style="font-size:24px">Step 5</strong><br />
Very good now we must add a movieclip to move the text using action script. Insert a new layer and rename it to <em>move</em>. With the Rectangle Tool (R) draw a small white rectangle and convert it to movieclip (F8) with alpha 0, instance name <em>moving </em>and the X Axis same like the text. Insert a keyframe to frame 100 and move the object at the end of lines. Try to view the picture below:</p>
<p style="text-align: center;"><img class="size-full wp-image-44 aligncenter" title="6" src="http://tuts.flashmint.com/wp-content/uploads/6.jpg" alt="6" width="500" height="300" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED"/></p>
<p><strong style="font-size:24px">Step 6</strong><br />
Return to Main Scene, right click on the movieclip and select Actions (F9) and write the following code:</p>
<p>onClipEvent(load) {<br />
total = _root.getBytesTotal();<br />
}</p>
<p>onClipEvent(enterFrame) {<br />
loaded = _root.getBytesLoaded();<br />
percent = int(loaded/total*100);<br />
txt = +percent+&#8221;%&#8221;;<br />
txt_mc._x = moving._x;<br />
gotoAndStop(percent);<br />
if (loaded == total) {<br />
_root.gotoAndPlay(2);<br />
}<br />
}</p>
<p>Now add a keyframe on frame 2 and put stop(); for the both frames (F9). On the frame 2 you can put a text field with Content Loaded and a big image to test your preloader.</p>
<p style="text-align: center;"><img class="size-full wp-image-45 aligncenter" title="7" src="http://tuts.flashmint.com/wp-content/uploads/7.jpg" alt="7" width="500" height="300" style="border:1px #d5d5d5 solid; padding:10px"; background:#EDEDED" /></p>
<p><strong style="font-size:24px">Final Work</strong></p>
<p><object width="400" height="300" data="http://tuts.flashmint.com/wp-content/uploads/adv_preloader_preview.swf" type="application/x-shockwave-flash"><param name="src" value="http://tuts.flashmint.com/wp-content/uploads/adv_preloader_preview.swf" /><param name="quality" value="high" /></object></p>
<div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://tuts.flashmint.com/advanced-preloader-with-reflection/&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:25px"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://tuts.flashmint.com/advanced-preloader-with-reflection/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

