<?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>Swami Charan&#039;s Blog &#187; Adobe Flash</title>
	<atom:link href="http://www.swamicharan.com/blog/tag/adobe-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.swamicharan.com/blog</link>
	<description>My personal blog...</description>
	<lastBuildDate>Sat, 17 Jul 2010 13:02:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple Menu in Flash AS3</title>
		<link>http://www.swamicharan.com/blog/flash/764/</link>
		<comments>http://www.swamicharan.com/blog/flash/764/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 09:32:23 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Easing]]></category>
		<category><![CDATA[Flash Menu]]></category>
		<category><![CDATA[Tween]]></category>
		<category><![CDATA[TweenEvent]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=764</guid>
		<description><![CDATA[Hi all, upon request from people, here i am with a small tutorial on 'Creating a Simple Menu' in Flash AS3.
Final Output:











In Flash Authoring, first create two movieclips 'btn_mc' and 'movie_mc' in the Library and make sure you select 'Export to Actionscript' checkbox in Symbol Properties of these movieclips to make use of them in [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all, upon request from people, here i am with a small tutorial on 'Creating a Simple Menu' in Flash AS3.</p>
<p><strong>Final Output:</strong><br />

<object width="550" height="400">
<param name="movie" value="http://www.swamicharan.com/blog/wp-content/uploads/2010/04/test.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="550" height="400" src="http://www.swamicharan.com/blog/wp-content/uploads/2010/04/test.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p><span id="more-764"></span></p>
<p>In Flash Authoring, first create two movieclips '<strong>btn_mc</strong>' and '<strong>movie_mc</strong>' in the Library and make sure you select '<strong>Export to Actionscript</strong>' checkbox in Symbol Properties of these movieclips to make use of them in .as file.</p>
<p><img class="aligncenter size-full wp-image-767" title="Symbol_Properties" src="http://www.swamicharan.com/blog/wp-content/uploads/2010/04/Symbol_Properties.jpg" alt="Symbol_Properties" width="248" height="329" /></p>
<p>Once these two movieclips are created, save this fla as 'test.fla' and create a new ActionScript File named 'test.as' in the same directory. We will be using this actionscript file as a Document Class for 'test.fla'. Inorder to use this .as file as a document class, we have to enter the name of the class(test) in ActionScript file in 'Class' textField under Publish Settings.</p>
<p><img class="aligncenter size-full wp-image-768" title="documentClass" src="http://www.swamicharan.com/blog/wp-content/uploads/2010/04/documentClass.jpg" alt="documentClass" width="312" height="369" /></p>
<p>Once Document class is set, we are done with 'test.fla'. Move to 'test.as' to start with coding.</p>
<p>Initially we import required classes and start with class declaration:</p>
<pre class="brush: php;">package {

	import flash.display.MovieClip;
	import flash.display.Stage;
	import flash.events.MouseEvent;
	import fl.transitions.Tween;
	import fl.transitions.TweenEvent;
	import fl.transitions.easing.*;

	public class test extends MovieClip {
		public function test() {
                                   setup();
		}
	}
}</pre>
<p class="brush: php;"><em>Note: Make sure the <strong>public</strong> class name is same as the name of .as file.</em></p>
<p class="brush: php;">Declare some variabled we need as class member variables.</p>
<pre class="brush: php;">private var activeMovie:String="";
private var tempArray:Array=[];
private var names:Array=["home","profile","projects","contact","about"];
private var movie:MovieClip;
private var fwdTween:Tween;
private var bkTween:Tween;</pre>
<p class="brush: php;">Inside the constructor we have a function <em>setup()</em> called. We will look into this function now. First we need to arrange the buttons at the bottom on the stage by instantiating '<em>btn_mc</em>' and giving <em>'x'</em> and '<em>y</em>' positions. Using '<em>name</em>' property of the movieclip, give names to these buttons to know which button is being clicked.</p>
<pre class="brush: php;">var temp:MovieClip;

for (var i:int=0; i&lt;5; i++) {
	temp = new btn_mc();
	temp.name=names[i];
	temp.x = i*(temp.width+10)+temp.width/2+10;
	temp.y=350;

	addChild(temp);
	tempArray.push(temp);
	temp.addEventListener(MouseEvent.CLICK, onClick);
}</pre>
<p class="brush: php;">We have declared an <em>eventListener</em> for <em>MouseEvent.CLICK</em> to handle click events.</p>
<p class="brush: php;">By default we will show an instance of '<em>movie_mc</em>' which shows the a label as <em>Home</em> with a Tween motion.<em>. </em></p>
<pre class="brush: php;">movie = new movie_mc();
movie.label_txt.text=names[0];
movie.x=-240;
movie.y=210;
addChild(movie);
fwdTween=new Tween(movie,"x",Elastic.easeInOut,-240,240,1,true);</pre>
<p class="brush: php;">Till now, we have arranged the buttons at the bottom and default movieclip that appears on launching the swf.</p>
<p class="brush: php;">On clicking any of the button at the bottom, that specific movieclip should be displayed and the exisiting movie should go off the stage. This we will be doing inside the eventListener <em>onClick()</em>.</p>
<p class="brush: php;">On clicking a specific button, move the existing movie off the stage first, changing the label of <em>moive_mc.label_txt</em> to desired one and getting the new movieclip to the stage.</p>
<pre class="brush: php;">private function onClick(event:MouseEvent):void {

	if (event.target.name==activeMovie) {
		//Do nothing
	} else {
		bkTween=new Tween(movie,"x",Regular.easeOut,240,-240,0.5,true);
		bkTween.addEventListener(TweenEvent.MOTION_FINISH, newMotion);

		movie.label_txt.text=event.target.name;
		movie.x=-240;
		movie.y=210;
		addChild(movie);

		activeMovie=event.target.name;
	}
}

private function newMotion(e:TweenEvent):void{
	fwdTween=new Tween(movie,"x",Regular.easeOut,-240,240,0.5,true);
}</pre>
<p class="brush: php;">As this is a simple menu, we are just changing the label the <em>movie_mc</em>. Incase if the content of the <em>movie_mc</em> varies with different tabs, we can add that specific content into <em>movie_mc</em> based on the tab clicked.</p>
<p class="brush: php;"><strong>Final <em>test.as:</em></strong></p>
<pre class="brush: php;">package {

	import flash.display.MovieClip;
	import flash.display.Stage;
	import flash.events.MouseEvent;
	import fl.transitions.Tween;
	import fl.transitions.TweenEvent;
	import fl.transitions.easing.*;

	public class test extends MovieClip {
		private var activeMovie:String="";
		private var tempArray:Array=[];
		private var names:Array=["home","profile","projects","contact","about"];
		private var movie:MovieClip;
		private var fwdTween:Tween;
		private var bkTween:Tween;

		public function test() {
			setup();
		}

		private function setup():void {
			var temp:MovieClip;

			for (var i:int=0; i&lt;5; i++) {
				temp = new btn_mc();
				temp.name=names[i];
				temp.x = i*(temp.width+10)+temp.width/2+10;
				temp.y=350;

				addChild(temp);
				tempArray.push(temp);
				temp.addEventListener(MouseEvent.CLICK, onClick);
			}

			movie = new movie_mc();
			movie.label_txt.text=names[0];
			movie.x=-240;
			movie.y=210;
			addChild(movie);
			fwdTween=new Tween(movie,"x",Elastic.easeInOut,-240,240,1,true);
		}

		private function onClick(event:MouseEvent):void {

			if (event.target.name==activeMovie) {
				//Do Nothing
			} else {
				bkTween=new Tween(movie,"x",Regular.easeOut,240,-240,0.5,true);
				bkTween.addEventListener(TweenEvent.MOTION_FINISH, newMotion);

				movie.label_txt.text=event.target.name;
				movie.x=-240;
				movie.y=210;
				addChild(movie);

				activeMovie=event.target.name;
			}
		}

		private function newMotion(e:TweenEvent):void{
			fwdTween=new Tween(movie,"x",Regular.easeOut,-240,240,0.5,true);
		}
	}
}</pre>
<p class="brush: php;">This is all we need to do to start with a basic menu in Profiles in Flash. This is just a way to do it. There are many different ways to do it.</p>
<p class="brush: php;">You can get the source files <strong><a href="http://www.swamicharan.com/blog/wp-content/uploads/2010/04/testFiles.rar" target="_blank"><span style="color: #0000ff;">here</span></a></strong>.</p>
<p class="brush: php;">Just Explore Flash AS3 <img src='http://www.swamicharan.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/764/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samsung Apps Contest 2010</title>
		<link>http://www.swamicharan.com/blog/flash/fldh-flash/samsung-apps-contest-2010/</link>
		<comments>http://www.swamicharan.com/blog/flash/fldh-flash/samsung-apps-contest-2010/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 06:43:25 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[FL for Digital Home]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Flash Lite for Digital Home]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[Samsung Apps Contest 2010]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=758</guid>
		<description><![CDATA[It seems Samsung has plans to start its own TV Appstore with applications using Flash Lite for Digital Home. Samsung announced new “Internet@TV” service, where user can download the various kind of applications onto Samsung DTV through internet with its own UI and service client.
Currently, Samsung provides the SDK to only register CPs. The current number [...]]]></description>
			<content:encoded><![CDATA[<p>It seems Samsung has plans to start its own TV Appstore with applications using <strong>Flash Lite for Digital Home</strong>. Samsung announced new <a href="mailto:“Internet@TV">“Internet@TV</a>” service, where user can download the various kind of applications onto Samsung DTV through internet with its own UI and service client.</p>
<p>Currently, Samsung provides the SDK to only register CPs. The current number of CPs is 200 and there are about 80 applications in application store. Those numbers will increase as time goes. It recently announced the <strong><a href="http://www.pavv.co.kr/contest/" target="_blank"><span style="color: #0000ff;">SAMSUNG APPS CONTEST 2010</span></a></strong>, calling developers to use their SDK and create new applications for TV.</p>
<p>Any developer who wants to create applications can</p>
<ul>
<li>download the SDK from <a href="http://www.pavv.co.kr/contest/" target="_blank"><span style="color: #0000ff;">http://www.pavv.co.kr/contest/</span></a>,</li>
<li>make their own application</li>
<li>test it using an desktop emulator.</li>
</ul>
<p>Developers can make applications using  Web technologies (HTML and JavaScript) and <strong>ADOBE FLASH</strong> Technology.</p>
<p>Hope this starts a new era of TV Apps using <strong>Flash Lite for Digital Home</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/fldh-flash/samsung-apps-contest-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TiVo DVR using Flash Lite for Digital Home</title>
		<link>http://www.swamicharan.com/blog/flash/fldh-flash/tivo-dvr-using-flash-lite-for-digital-home/</link>
		<comments>http://www.swamicharan.com/blog/flash/fldh-flash/tivo-dvr-using-flash-lite-for-digital-home/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 05:51:37 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[FL for Digital Home]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flash Platform]]></category>
		<category><![CDATA[Flash Lite for Digital Home]]></category>
		<category><![CDATA[Tivo DVR]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=752</guid>
		<description><![CDATA[Adobe Flash Lite for Digital Home is in news now-a-days. Recently Intel's Sodaville announced that they are going to use Flash. Now its TiVo, which announced its new Set-top box which uses Adobe Flash Platform.

This device has several new menus with a very rich UI:

TiVo Central
TiVo Search
Tivo Browser (Tivo Content Browsing, not a html browser)
My [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe Flash Lite for Digital Home is in news now-a-days. Recently Intel's Sodaville announced that they are going to use Flash. Now its TiVo, which announced its new Set-top box which uses Adobe Flash Platform.</p>
<p style="text-align: center;"><img class="size-full wp-image-753  aligncenter" title="TiVo_Premiere" src="http://www.swamicharan.com/blog/wp-content/uploads/2010/03/TiVo_Premiere.jpg" alt="TiVo_Premiere" width="620" height="237" /></p>
<p>This device has several new menus with a very rich UI:</p>
<ul>
<li>TiVo Central</li>
<li>TiVo Search</li>
<li>Tivo Browser (Tivo Content Browsing, not a html browser)</li>
<li>My Shows etc</li>
</ul>
<p>Apart from this, the Remote is pretty exciting with QWERTY Keyboard and very much like the way needed to navigate different Applications.</p>
<p>Way to go Flash Lite for Digital Home...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/fldh-flash/tivo-dvr-using-flash-lite-for-digital-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Timestamp in Flash</title>
		<link>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/</link>
		<comments>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 11:29:50 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Unix TimeStamp]]></category>
		<category><![CDATA[Unix Timestamp in Flash]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=731</guid>
		<description><![CDATA[Recently i needed to convert normal Time to Unix Timestamp in Flash. I couldn't get how to go about it intially. But when i gone through the definition of Unix Timestamp, its was clear for me.
"The unix time stamp is a way to track time as a running total of seconds. This count starts at [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i needed to convert normal Time to Unix Timestamp in Flash. I couldn't get how to go about it intially. But when i gone through the definition of Unix Timestamp, its was clear for me.</p>
<p><strong><em>"The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970. Therefore, the unix time stamp is merely the number of seconds between a particular date and the Unix Epoch."</em></strong></p>
<p>In order to count the number of seconds till a time, we have method <em>Date.getTime() </em>in Flash. This will effectively return the number of seconds from the Unix Epoch till the Date.</p>
<p>This is how i tried to find out the number of seconds till today's System Time:</p>
<pre class="brush: php;">var myDate = new Date();
trace(myDate);
var unixTime = Math.round(myDate.getTime()/1000);
trace("Unix Time: "+unixTime);</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php;">Fri Jan 22 13:01:55 GMT+0530 2010
Unix Time: 1264145516</pre>
<p><span id="more-731"></span></p>
<p>To verify if we got the correct Unix TimeStamp of the normal time, check it on any online <span style="color: #0000ff;"><a href="http://www.onlineconversion.com/unix_time.htm" target="_self">Unix Timestamp converters</a></span>.</p>
<p>Problem arised when tried to convert the Unix Time we got into normal timestamp in Flash.</p>
<pre class="brush: php;">var myDate = new Date();
trace(myDate);
var unixTime = Math.round(myDate.getTime()/1000);
trace("Unix Time: "+unixTime);

var dateNew = new Date();
dateNew.setTime(unixTime);
trace(dateNew);</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php;">Fri Jan 22 16:22:42 GMT+0530 2010
Unix Time: 1264157563
Thu Jan 15 20:39:17 GMT+0530 1970</pre>
<p>If you observe closely, while converting the Unix Timestamp to normal time, the year that's returned is <strong>1970</strong>. If we use a online <span style="color: #0000ff;"><a href="http://www.onlineconversion.com/unix_time.htm" target="_blank">Unix Timestamp Converter</a></span> to get back the normal time, it returns approximately correct time by inputting the above Unix Timestamp.</p>
<p>That was strange to get the difference while converting Unix Timestamp to Normal TimeStamp. Just observed this behavior, so thought of sharing it to find a solution or answer how to overcome it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/unix-timestamp-in-flash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ActionScript 3.0 Referece for Adobe Flash Platform</title>
		<link>http://www.swamicharan.com/blog/adobe/actionscript-3-0-referece-for-adobe-flash-platform/</link>
		<comments>http://www.swamicharan.com/blog/adobe/actionscript-3-0-referece-for-adobe-flash-platform/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:17:43 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[ActionScript 3.0 Reference]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flash Platform]]></category>
		<category><![CDATA[AIR Help]]></category>
		<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[LifeCycle Data services]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=665</guid>
		<description><![CDATA[ActionScript 3.0 Refernece for Adobe Flash Platform is a place where you will get reference for actionscript language elements, libraries, component tools, runtimes, servers and services for Flash Platform.
 
Beta version is online now. This has not only Help for Flash and Flex, but also for AIR, LifeCycle Data Services, ColdFusion. It makes us really easy [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ActionScript 3.0 Refernece for Adobe Flash Platform</strong> is a place where you will get reference for actionscript language elements, libraries, component tools, runtimes, servers and services for Flash Platform.</p>
<p> <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html" target="_blank"><img class="aligncenter size-full wp-image-666" title="adobeflashplatform" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/12/adobeflashplatform.jpg" alt="adobeflashplatform" width="505" height="216" /></a></p>
<p><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html" target="_blank"><strong><span style="color: #0000ff;">Beta version</span></strong></a> is online now. This has not only Help for Flash and Flex, but also for AIR, LifeCycle Data Services, ColdFusion. It makes us really easy to go to each product or earlier versions of each product's help using Filters controls.</p>
<p>Based on the filter you have selected, the content in the help varies accordingly.</p>
<p>This will be one place for all the reference for the Adobe Flash Platform.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/adobe/actionscript-3-0-referece-for-adobe-flash-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Motion Editor in Flash CS4</title>
		<link>http://www.swamicharan.com/blog/flash/using-motion-editor-in-flash-cs4/</link>
		<comments>http://www.swamicharan.com/blog/flash/using-motion-editor-in-flash-cs4/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:47:18 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Animation using Motion Editor]]></category>
		<category><![CDATA[Flash CS4]]></category>
		<category><![CDATA[Motion Editor]]></category>
		<category><![CDATA[Motion Editor in CS4]]></category>
		<category><![CDATA[Motion Tween]]></category>
		<category><![CDATA[Tweening using motion editor]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=541</guid>
		<description><![CDATA[Motion Editor is one of the new Features of Adobe Flash CS4. This helps us in creating animations of nice quality, accuracy yet with a minimal of effort compared to the conventional way of animation we used to see until Flash Cs3.
Till now, if we had to create any animation, we have to create keyFrames, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Motion Editor</strong> is one of the new Features of <strong>Adobe Flash CS4</strong>. This helps us in creating animations of nice quality, accuracy yet with a minimal of effort compared to the conventional way of animation we used to see until Flash Cs3.</p>
<p>Till now, if we had to create any animation, we have to create keyFrames, apply Tween, apply Ease if needed. If we had to remove the tween Undo Tween or Remove Tween. It was all a bit tedious one. But with new Motion Editor, all these tasks are made simple and quite fast with good accuracy.</p>
<p><span id="more-541"></span></p>
<p>Now we will start creating a simple motion tween using Motion Editor.</p>
<p>Create a new Flash AS3 Document. We have a car MovieClip located at outside of the stage to the right at First Frame.</p>
<p><img class="alignleft size-full wp-image-542" title="firstFrame" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/firstFrame.jpg" alt="firstFrame" width="329" height="310" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>We are going to create a simple motion Tween in which a car moves from right(out of the stage) to left(out of the stage). We dont have to creat any KeyFrames to indicate the end of the Frame animation. Just create some empty frames (say 60).</p>
<p>In order to create motion tween for this MovieClip using Motion Editor, Select car movieclip, goto <strong>Insert-&gt;Motion Tween</strong> or Right-click the car and select Create Motion Tween from the context menu.</p>
<p>Once this is done, you can see that Motion Editor Panel is displayed.</p>
<p><img class="alignleft size-full wp-image-544" title="motionEditor" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/motionEditor.jpg" alt="motionEditor" width="411" height="362" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>As you can see in Motion Editor Panel shows all the properties which can be tweened like X, Y, Rotation, Skew and Scale etc. Once you are successful till here. Move to the 60th frame on Main Timeline. Drag the car movieclip to the left side of the stage, move it outside of the stage, to signify the end point of the motion tween.</p>
<p>Check  in the motion editor for the value of X to verify. As you can see thats all we need to do to create a simple motion tween.</p>
<p>Run the swf and check if the motion tween works.</p>
<p>Now we will look into Motion editor for a while. For each tweenable property, you can see that there will be two arrows, clicking on them will move the playhead to the appropriate keyframe to that side. Like clicking the Left arrow takes you to the keyframe present to the left. The diamond icon in between arrows is used to insert keyframes at the current location or can delete a keyframe if it already exists at that playhead location.</p>
<p>These options will make the user to know what exactly is happenig while editing keyframes of the animation, as in, which property is affected by inserting /removing keyframes.</p>
<p><strong>Adding Easing:</strong></p>
<p>Till now as you can see, its very simple creating a motion tween. Motion editor also gives up different easing motions by default. Click the combo box beside the arrows and check that '<strong>Simple (Slow)</strong>' is one of the options there. If you apply it, you can see how smoothly the animation plays.</p>
<p>You can configure the type of easing as well.</p>
<p>If you can see '<strong>Eases</strong>' option below different properties, you can give a value of -100 to 100 for that easing motion. Giving '-100' will make the animation to start slowly and becomes normal. Giving value '100' makes the animation to slowdown at the end. If we give value of '0', the motion speed will be same throughout.</p>
<p>Give these values to this easing motion and check.</p>
<p>You can add more kinds of eases to your animation. Click the '<strong>+</strong>' button on Eases panel and you can see all the available easing motions available.</p>
<p> <img class="alignleft size-full wp-image-545" title="eases" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/eases.jpg" alt="eases" width="410" height="227" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Apply all these different easing motions and check how the animation looks.</p>
<p><strong>Motion Tween to Children:</strong></p>
<p>In the above animation, its just the car moves.  Its not that realistic. It would be more nicer if we could rotate the wheels while the car moves. This can be done very easily using motion editor.</p>
<p>In case of this car movieclip, go inside it, i have placed both the front and back wheels in differnet layers to make it easier for me to apply tween.</p>
<p>Follow the same procedure as above, click the front wheel, right-click-&gt;Create Motion Tween. Goto to the last frame of the time line of this layer. Here, to make the wheel rotate, we will use '<strong>Rotation Z</strong>' property. Enter a value of '360', which signifies a complete rotation.</p>
<p>Similarly apply tween to the back wheel. Run the swf and check the animation.</p>
<p>
<object width="550" height="400">
<param name="movie" value="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/car.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="550" height="400" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/car.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p>This is just the basic animation you could create. You can apply different tweens/eases to different properties simultanesously in case of any complex animation.</p>
<p>As you saw, Motion Editor gives us a new way of handling Keyframes, adding different easing motins to differnet properties. Not only these, you can incorporate <strong>Color Tweens</strong> like Alpha, Brightness, Tint, Advanced Colot. You also add differnet <strong>Filters</strong> like drop Shadow, Bevel etc for animations.</p>
<p>As you can visualize now, with all these in hand, how nice an animation you can create by using motion editor efficiently.</p>
<p>Just try it out, you would love it....</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/using-motion-editor-in-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating Dynamic Accordian Menu in Flash CS4 with ActionScript3.0 and XML</title>
		<link>http://www.swamicharan.com/blog/flash/creating-dynamic-accordian-menu-in-flash-cs4-with-actionscript3-0-and-xml/</link>
		<comments>http://www.swamicharan.com/blog/flash/creating-dynamic-accordian-menu-in-flash-cs4-with-actionscript3-0-and-xml/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 06:35:28 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Accordian in AS3]]></category>
		<category><![CDATA[Accordian using Flash CS4]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Dynamic Accordian in Flash]]></category>
		<category><![CDATA[Flash CS4]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=488</guid>
		<description><![CDATA[Recently i came across a very nice tutorial for creating a 'Dynamic Accordian Menu using Flash CS4 with ActionScript3.0  and XML' by Mario Santos.
Its totally dynamic as in all the menu Items can be configured in an XML and you can load text or  image or a SWF in the opened state.
Final Output:

 
You can get source files [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i came across a very nice tutorial for creating a <strong><a href="http://www.thetechlabs.com/tutorials/xml/build-a-dynamic-accordion-menu-in-flash-cs4-with-actionscript-30-and-xml/" target="_self"><span style="color: #0000ff;">'Dynamic Accordian Menu using Flash CS4 with ActionScript3.0  and XML</span></a></strong>' by <strong>Mario Santos</strong>.</p>
<p>Its totally dynamic as in all the menu Items can be configured in an XML and you can load text or  image or a SWF in the opened state.</p>
<p><strong>Final Output:</strong></p>
<p><img class="alignleft size-full wp-image-489" title="accordian" src="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/accordian.JPG" alt="accordian" width="547" height="242" /></p>
<p><strong> </strong></p>
<p>You can get source files for this turorials as well...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/creating-dynamic-accordian-menu-in-flash-cs4-with-actionscript3-0-and-xml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash or Silverlight? Which suits your needs the best?</title>
		<link>http://www.swamicharan.com/blog/flash/flash-or-silverlight-which-suits-your-needs-the-best/</link>
		<comments>http://www.swamicharan.com/blog/flash/flash-or-silverlight-which-suits-your-needs-the-best/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:46:23 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Flash or Silverlight?]]></category>
		<category><![CDATA[Flash vs silverlight]]></category>
		<category><![CDATA[Microsoft Silverlight]]></category>
		<category><![CDATA[Silverlight 1.0]]></category>
		<category><![CDATA[Smashing magazine]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=452</guid>
		<description><![CDATA[Adobe Flash as you all know is in use for years now for designing any web applicaitons or content. With Silverlight1.0 released, there is  a debate started in web developers on whether to choose Flash or Silverlight.
Even after release Silverlight is facing a difficulty in capturing the market because of the coverage of Flash present already. Still we cannot deny that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Adobe Flash </strong>as you all know is in use for years now for designing any web applicaitons or content.<strong> </strong>With Silverlight1.0 released, there is  a debate started in web developers on whether to choose Flash or Silverlight.</p>
<p>Even after release Silverlight is facing a difficulty in capturing the market because of the coverage of Flash present already. Still we cannot deny that there are some features in Silverlight like search engine optimization, which designers and developers wanted to see in Flash for so long.</p>
<p>Actually speaking, which technology to use mostly depends on your requirements, on what capabilities you need to develop your application etc.</p>
<p><a href="http://www.smashingmagazine.com/2009/05/09/flash-vs-silverlight-what-suits-your-needs-best/" target="_self"><strong><span style="color: #0000ff;">Smashing Magazine</span></strong></a> has posted an article discussing the <strong>technical differences between Flash and Silverlight</strong>.</p>
<p>The articles concludes as:</p>
<table border="1" cellspacing="0" cellpadding="0" width="300">
<tbody>
<tr>
<th scope="col"><strong>Features</strong></th>
<th scope="col"><strong>Flash</strong></th>
<th scope="col"><strong>Silverlight</strong></th>
</tr>
<tr>
<th scope="row"><strong>Animation</strong></th>
<td> </td>
<td>better</td>
</tr>
<tr>
<th scope="row"><strong>File Size</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Scripting</strong></th>
<td> </td>
<td>better</td>
</tr>
<tr>
<th scope="row"><strong>Video/Audio</strong></th>
<td> </td>
<td>better</td>
</tr>
<tr>
<th scope="row"><strong>Sound Processing</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Accessibility</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Platform Compatibility</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Text Representation/SEO</strong></th>
<td> </td>
<td>better</td>
</tr>
<tr>
<th scope="row"><strong>Supported Image Formats</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Socket Programming</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Webcam Support</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Deployment</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Windows Application</strong></th>
<td>better</td>
<td> </td>
</tr>
<tr>
<th scope="row"><strong>Media Streaming</strong></th>
<td> </td>
<td>better</td>
</tr>
</tbody>
</table>
<p>Check out this article and use appropriate technology which suits your needs and requirements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/flash-or-silverlight-which-suits-your-needs-the-best/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
