<?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; Flash</title>
	<atom:link href="http://www.swamicharan.com/blog/category/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>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<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 [...]]]></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 [...]]]></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>2</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, [...]]]></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>Adobe Flash Player 10 be available on Intel Sodaville</title>
		<link>http://www.swamicharan.com/blog/flash/fldh-flash/adobe-flash-player-10-be-available-on-intel-sodaville-chips/</link>
		<comments>http://www.swamicharan.com/blog/flash/fldh-flash/adobe-flash-player-10-be-available-on-intel-sodaville-chips/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 08:07:13 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[FL for Digital Home]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash on Sodaville]]></category>
		<category><![CDATA[Flash Player 10]]></category>
		<category><![CDATA[Intel CE4100]]></category>
		<category><![CDATA[Intel Sodaville]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=746</guid>
		<description><![CDATA[During this week's Intel Developer Forum, Intel has unveiled "Sodaville" a new 45nm system-on-a-chip based on the comapny’s Atom processor that’s designed specifically to bring interactive, Internet-based services and content to televisions, set-top boxes, and peripherals like DVD players and DVRs. The chipset supports both Internet and broadcast applications, and has enough processing horsepower to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-748" title="intel-logo" src="http://www.swamicharan.com/blog/wp-content/uploads/2010/02/intel-logo.gif" alt="intel-logo" width="300" height="225" />During this week's Intel Developer Forum, Intel has unveiled "Sodaville" a new 45nm system-on-a-chip based on the comapny’s Atom processor that’s designed specifically to bring interactive, Internet-based services and content to televisions, set-top boxes, and peripherals like DVD players and DVRs. The chipset supports both Internet and broadcast applications, and has enough processing horsepower to handle both video and audio processing and 3D graphics in real time.</p>
<p>The CE4100 will be available at speeds of up to 1.2 GHz, and will feature hardware-based decoding capabilities that can handle two 1080p video streams simultaneously, along with high-definition audio and 3D graphics. The system supports hardware-based decoding for MEG4, and integrated NAND flash controller, support for DDR2 and DDR3 memory, support for SATA-300 and USB 2.0, and 512K of L2 cache. The chip will support Flash Player 10, along with standards like OpenFGL ES 2.0 for developing media-intensive 3D applications; Adobe expects Flash 10 to be available for Sodaville devices in mid-2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/fldh-flash/adobe-flash-player-10-be-available-on-intel-sodaville-chips/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 [...]]]></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>Flash Search Engine Optimization</title>
		<link>http://www.swamicharan.com/blog/flash/flash-search-engine-optimization/</link>
		<comments>http://www.swamicharan.com/blog/flash/flash-search-engine-optimization/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 06:40:06 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe TV]]></category>
		<category><![CDATA[Flash Search]]></category>
		<category><![CDATA[Flash Search Engine Optimization]]></category>
		<category><![CDATA[Flash SEO]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=720</guid>
		<description><![CDATA[Here are is the video series from ADOBE TV by Jay Middleton and Damien Bianchi  on Flash Search Engine Optimization. They talk about Flash content crawlability and keyword and website strategies for search engines. Episode 1   Episode 2 Episode 3 Episode 4 Episode 5]]></description>
			<content:encoded><![CDATA[<p>Here are is the video series from <strong>ADOBE TV</strong> by Jay Middleton and Damien Bianchi  on <strong>Flash Search Engine Optimization</strong>. They talk about Flash content crawlability and keyword and website strategies for search engines.</p>
<p><strong>Episode 1</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=4219&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="src" value="http://tv.adobe.com/assets//swf/player.swf" /><param name="flashvars" value="fileID=4219&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=4219&amp;context=287&amp;embeded=true&amp;environment=production" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><span id="more-720"></span></p>
<p> <br />
<strong>Episode 2</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=4220&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="src" value="http://tv.adobe.com/assets//swf/player.swf" /><param name="flashvars" value="fileID=4220&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=4220&amp;context=287&amp;embeded=true&amp;environment=production" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><strong>Episode 3</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=4221&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="src" value="http://tv.adobe.com/assets//swf/player.swf" /><param name="flashvars" value="fileID=4221&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=4221&amp;context=287&amp;embeded=true&amp;environment=production" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><strong>Episode 4</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=4222&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="src" value="http://tv.adobe.com/assets//swf/player.swf" /><param name="flashvars" value="fileID=4222&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=4222&amp;context=287&amp;embeded=true&amp;environment=production" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p><strong>Episode 5</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="FlashVars" value="fileID=4223&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="src" value="http://tv.adobe.com/assets//swf/player.swf" /><param name="flashvars" value="fileID=4223&amp;context=287&amp;embeded=true&amp;environment=production" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://tv.adobe.com/assets//swf/player.swf" flashvars="fileID=4223&amp;context=287&amp;embeded=true&amp;environment=production" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/flash-search-engine-optimization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open Source ActionScript APIs</title>
		<link>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/</link>
		<comments>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 05:50:04 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript APIs]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[opensource actionscript API]]></category>
		<category><![CDATA[Papervision3D]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=713</guid>
		<description><![CDATA[As you all might have heard of many opensource ActionScript API's like APE, Away3D, Papervision3D etc. You can get all of such opensource APIs at one one place: http://actionscriptapis.com/ Nice to see all the API's at one place. Check them out...]]></description>
			<content:encoded><![CDATA[<p>As you all might have heard of many opensource ActionScript API's like APE, Away3D, Papervision3D etc.</p>
<p>You can get all of such opensource APIs at one one place: <a href="http://actionscriptapis.com/"><strong><span style="color: #0000ff;">http://actionscriptapis.com/</span></strong></a></p>
<p>Nice to see all the API's at one place. Check them out...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/open-source-actionscript-apis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Device Central CS5 Sneak Peek</title>
		<link>http://www.swamicharan.com/blog/flash/flashlite-flash/adobe-device-central-cs5-sneak-peek/</link>
		<comments>http://www.swamicharan.com/blog/flash/flashlite-flash/adobe-device-central-cs5-sneak-peek/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 04:19:37 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[FlashLite]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe Device Central CS5]]></category>
		<category><![CDATA[Device Central]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Sneak Peek of Device Central]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=704</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="549" height="309"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8073605&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8073605&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="549" height="309"></embed></object><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/flashlite-flash/adobe-device-central-cs5-sneak-peek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making particles dragable in APE</title>
		<link>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/</link>
		<comments>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:42:38 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[APE]]></category>
		<category><![CDATA[APE for Flash]]></category>
		<category><![CDATA[Dragable Circle Particle]]></category>
		<category><![CDATA[Dragable Rectangle Particle]]></category>
		<category><![CDATA[Dragging in APE]]></category>
		<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[Physics in Flash]]></category>
		<category><![CDATA[Vector]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=686</guid>
		<description><![CDATA[As you all know what APE is, I will go directly into what problem i faced when started with it and how i overcame it. First of all, APE source has class named Vector defined in it. When we try to publish any content with APE on Flash CS4/FP 10, there will be a conflict [...]]]></description>
			<content:encoded><![CDATA[<p>As you all know what APE is, I will go directly into what problem i faced when started with it and how i overcame it. First of all, APE source has class named <strong>Vector</strong> defined in it. When we try to publish any content with APE on Flash CS4/FP 10, there will be a conflict that arises between Vector class of APE and Vector Datatype of Flash Player 10.</p>
<p>So, i had to modify the APE source to rename the Vector class in APE and change the reference of Vector in APE source with the new name. Then i could able to run content with APE on Flash Player 10. You can download the modified source from <strong><a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/11/source.zip" target="_blank"><span style="color: #0000ff;">here</span></a></strong>.</p>
<p><strong>Making Particle Dragable:</strong></p>
<p>After successful in running the content on Flash Player 10, i wanted to check out how drag works on APE particles. There are separate class files called 'DragableCircleParticle.as' and 'DragableRectangleParticle.as' under Files section of <a href="http://groups.google.com/group/ape-general/files" target="_blank"><span style="color: #0000ff;">APE Google Group</span></a>.</p>
<p>Place these .as files under '<strong>source\org\cove\ape</strong>' Folder of APE.</p>
<p>Using these classes can make our work easy in making particles dragable.</p>
<p>These dragable particles can be initialized as follows:</p>
<pre class="brush: php;">DragableCircleParticel(x:Number, y:Number, radius:Number, fixed:Boolean, mass:Number,elasticity:Number, frictio:Number);

DragableRectanlgeParticle(x:Number, y:Number, width:Number, height:Number, rotation:Number, fixed:Boolean, mass:Number, elasticity:Number, friction:Number)</pre>
<p class="brush: php;"><span id="more-686"></span></p>
<p class="brush: php;">Here is the sample code to make use of these classes:</p>
<p class="brush: php;"> </p>
<pre class="brush: php;">stage.frameRate=60;
import org.cove.ape.*;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.Event;

addEventListener(Event.ENTER_FRAME, run);

var apeholder:MovieClip = new MovieClip();
apeholder.graphics.drawRect(0, 0, 550, 400);
addChild(apeholder);

APEngine.init(1/3);
APEngine.container=apeholder;

APEngine.addForce(new VectorForce(false,0,2));
var examplelevel:Group = new Group();
examplelevel.collideInternal=true;

var leftwall:RectangleParticle=new RectangleParticle(5,200,10,600,0,true);
leftwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(leftwall);

var rightwall:RectangleParticle=new RectangleParticle(545,200,10,600,0,true);
rightwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(rightwall);

var bottomwall:RectangleParticle=new RectangleParticle(275,395,550,10,0,true);
bottomwall.setStyle(3, 0x000000, 1, 0xFFFFFF,1);
examplelevel.addParticle(bottomwall);

var block:DragableRectangleParticle=new DragableRectangleParticle(Math.random()*550,- Math.random()*50, 80, 80,0, false,3);
examplelevel.addParticle(block);

var wheel:DragableCircleParticle=new DragableCircleParticle(Math.random()*550,- Math.random()*50, 20, false,3);
examplelevel.addParticle(wheel);

APEngine.addGroup(examplelevel);

function run(event:Event):void {
	APEngine.step();
	APEngine.paint();
}</pre>
<p class="brush: php;">Here is the output <a href="http://www.swamicharan.com/blog/wp-content/uploads/2009/12/dragable.swf " target="_blank"><span style="color: #0000ff;"><strong>SWF</strong></span></a>.</p>
<p class="brush: php;">Hope this would be helpful...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/making-particles-dragable-in-ape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multitouch in AIR 2.0 and Flash Player 10.1</title>
		<link>http://www.swamicharan.com/blog/flash/multitouch-in-air-2-0-and-flash-player-10-1/</link>
		<comments>http://www.swamicharan.com/blog/flash/multitouch-in-air-2-0-and-flash-player-10-1/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 14:55:29 +0000</pubDate>
		<dc:creator>Swami Charan</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR 2.0]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash Player 10.1 Features]]></category>
		<category><![CDATA[Gesture capabilities]]></category>
		<category><![CDATA[MAX 09]]></category>
		<category><![CDATA[Multi-touch]]></category>
		<category><![CDATA[Multi-touch on AIR]]></category>

		<guid isPermaLink="false">http://www.swamicharan.com/blog/?p=683</guid>
		<description><![CDATA[You might have heard by now about all the new features that is part of Flash Player 10.1 and AIR 2.0. One of the exciting features is Multi-touch and Gestures capabilities. Check out this video where Kevin Lynch demoing some of the multi-touch capabilities during Keynote at MAX Conference. For Multi-touch to work, the hardware [...]]]></description>
			<content:encoded><![CDATA[<p>You might have heard by now about all the new features that is part of Flash Player 10.1 and AIR 2.0. One of the exciting features is <strong>Multi-touch and Gestures capabilities</strong>.</p>
<p>Check out this video where Kevin Lynch demoing some of the multi-touch capabilities during Keynote at <strong>MAX Conference</strong>.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/va33sU-_Bzk&#038;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/va33sU-_Bzk&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>For Multi-touch to work, the hardware should support Multi-touch events.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.swamicharan.com/blog/flash/multitouch-in-air-2-0-and-flash-player-10-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

