<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tushar's Blog - BETA</title>
	<atom:link href="http://tusharvaghela.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tusharvaghela.wordpress.com</link>
	<description>Just another Wordpress.com weblog</description>
	<lastBuildDate>Wed, 07 Sep 2011 05:15:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tusharvaghela.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tushar's Blog - BETA</title>
		<link>http://tusharvaghela.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tusharvaghela.wordpress.com/osd.xml" title="Tushar&#039;s Blog - BETA" />
	<atom:link rel='hub' href='http://tusharvaghela.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Some Useful Flash API</title>
		<link>http://tusharvaghela.wordpress.com/2011/04/15/some-useful-flash-api/</link>
		<comments>http://tusharvaghela.wordpress.com/2011/04/15/some-useful-flash-api/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 16:03:22 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[away3d]]></category>
		<category><![CDATA[Box2D]]></category>
		<category><![CDATA[come2play]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[FLARToolKit]]></category>
		<category><![CDATA[Gigya]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Greensock]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[player.io]]></category>
		<category><![CDATA[Stardust]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=102</guid>
		<description><![CDATA[Google Map This API allows you to add interactive Google Map in your flash content. This API is not only alternative to JavaScript map API, but it also provides ability to mix flash content with Google Maps (like using MovieClips as marker). Documentation and download: http://code.google.com/apis/maps/documentation/flash/ YouTube API This API is useful to integrate YouTube &#8230; <a href="http://tusharvaghela.wordpress.com/2011/04/15/some-useful-flash-api/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=102&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1><span class="Apple-style-span" style="font-size:20px;">Google Map</span></h1>
<p>This API allows you to add interactive Google Map in your flash content. This API is not only alternative to JavaScript map API, but it also provides ability to mix flash content with Google Maps (like using MovieClips as marker).</p>
<p>Documentation and download: <a href="http://code.google.com/apis/maps/documentation/flash/">http://code.google.com/apis/maps/documentation/flash/</a></p>
<h2>YouTube API</h2>
<p>This API is useful to integrate YouTube content in flash unit. There are separate APIs for data, Player, Custom player, Widgets.</p>
<p>Documentation and download: <a href="http://code.google.com/apis/youtube/overview.html">http://code.google.com/apis/youtube/overview.html</a></p>
<h2>Papervision 3D</h2>
<p>Papervision is most popular open source realtime 3D engine for Flash.</p>
<p>Download: <a href="http://code.google.com/p/papervision3d/">http://code.google.com/p/papervision3d/</a></p>
<h2>Sandy3D</h2>
<p>Sandy3D is another open source 3D API for flash AS2, AS3.</p>
<p>This 3D engine main features are :</p>
<ul>
<li>Viewing volume clipping for perfect interior scenes rendering</li>
<li>Advanced shading effects such as (Phong, Gouraud, CelShading, flat shading).</li>
<li>Material system to easily change your objects appearance. Several material are available allowing to create transparent faces, bitmap texture and video texture as webcam video stream.</li>
<li>Flash player 7 to 10 compatibility.</li>
<li>Complete set of parsers to handle various set of 3D formats (Collada, 3DS, ASE, MD2)</li>
<li>Several 3D primitives, allowing fast and parameterized object creation without any 3D modelisation knowledge.</li>
</ul>
<p>Download: <a href="http://flashsandy.org/download">http://flashsandy.org/download</a></p>
<h2>Away3D</h2>
<p>Away3D is next generation realtime 3D engine for Flash. Away3D is very advanced and uses GPU rendering, Create stunning 3D environments with highly detailed texture, Animate and transform all types of 3D objects, including 3D Text, Get the best performance from the Flash Player with proven Away3D optimization techniques, without compromising on visual appeal.</p>
<p>Download: <a href="http://away3d.com/downloads">http://away3d.com/downloads</a></p>
<h2>Facebook API</h2>
<p>Facebook API for Flash, Flex and AIR. This is class library created by gskinner.com that communicates with Facebook  using the OpenGraph API.</p>
<p>Download: <a href="http://code.google.com/p/facebook-actionscript-api/">http://code.google.com/p/facebook-actionscript-api/</a></p>
<p>More Resource: <a href="http://www.adobe.com/devnet/facebook.html">http://www.adobe.com/devnet/facebook.html</a></p>
<h2>Tweener API</h2>
<p>Tweener class is useful for creating code based dynamic animations and transitions.</p>
<p>Download: <a href="http://code.google.com/p/tweener/">http://code.google.com/p/tweener/</a></p>
<p>Documentation: <a href="http://hosted.zeh.com.br/tweener/docs/en-us/">http://hosted.zeh.com.br/tweener/docs/en-us/</a></p>
<h2>Greensock Tweening Platform</h2>
<p>Amazing code based tweening platform for all. This is having various options like TweenNano, TweenLite, TweenMax which gives you ability to add amazing code based animation, filter effects in your project.</p>
<p>Most exciting part is interactive demos where you can set parameters and it will instantly gives you code.</p>
<p>This API is available in AS2 and AS3.</p>
<p>Document, Downloads and Resources at <a href="http://www.greensock.com/v11/">http://www.greensock.com/v11/</a></p>
<h2>Box2D API</h2>
<p>Box2D is very popular physics engine for flash game developers. It’s useful to create Ragdolls, Compound Shapes, Joints, Continuous collision detection and many more features. This can actually add life to your flash project.</p>
<p>Download: <a href="http://sourceforge.net/projects/box2dflash/">http://sourceforge.net/projects/box2dflash/</a></p>
<p>Documentation: <a href="http://www.box2dflash.org/docs/">http://www.box2dflash.org/docs/</a></p>
<h2>Stardust Particle Engine</h2>
<p>Stardust is wonderful particle engine for flash. It is useful for creating 2D and 3D particle effects. Some of my personal favorites are waypoints, exploding image and star fireworks.</p>
<p>Download and Documentation: <a href="http://code.google.com/p/stardust-particle-engine/">http://code.google.com/p/stardust-particle-engine/</a></p>
<h2>amMAP</h2>
<p>AmMap is a tool that lets you have good-looking and functional maps on your website. The tool use Adobe Flash technology for a compelling online experience. You can display maps in any HTML page (web page), or inside another Flash movie. You can also use the maps in PowerPoint presentations.</p>
<p>Download: <a href="http://www.ammap.com/download">http://www.ammap.com/download</a></p>
<p>Documentation: <a href="http://www.ammap.com/docs/">http://www.ammap.com/docs/</a></p>
<h2>Giggya API</h2>
<p>Giggya is a perfect tool for sharing your flash content on social network like Facebook, Twitter, LinkedIn, Yahoo!, Google Buzz, Windows Live, opened etc.</p>
<p>Gigya’s  “wildfire in widget” lets you add sharing in flash AS2/AS3/Flex project.  Here you can select theme, choose network sites, customized height and width, show/hide bookmarks, show/hide email and customize many more features and after that all you have to do is copy code and paste is in your flash project. (you need to sign in to <a href="http://www.gigya.com/">http://www.gigya.com/</a> to do this)</p>
<p>Documentation: <a href="http://developers.gigya.com/">http://developers.gigya.com/</a></p>
<h2>WiiFlash API</h2>
<p>Ever think of playing flash games with Wiimote? If yes, than this is the API for that. This consist of two parts WiiFlash Server (for getting input from Wiimote and send it to Flash and vice versa) and WiiFlash ActionScript API (for using Wiimote events in Flash)</p>
<p>Download: <a href="http://code.google.com/p/wiiflash/">http://code.google.com/p/wiiflash/</a></p>
<h2>FLARToolKit</h2>
<p>FLARToolKit is a AS3 version of ARToolKit, which is a software library for building Augmented Reality (AR) applications. FLARToolKit recognize the marker from input image  and calculate its orientation and position in 3D world.</p>
<p>Download, Resource, Examples: <a href="http://www.libspark.org/wiki/saqoosha/FLARToolKit/en">http://www.libspark.org/wiki/saqoosha/FLARToolKit/en</a></p>
<h2>Player.IO</h2>
<p>Player.IO is a support tool service for multiplayer game, database service, connectivity for Facebook, solution for in-game payment. It supports AS3, .NET and Unity3D.</p>
<p>It’s one stop solution for those who are looking for affordable multiplayer game serving.</p>
<p>Download: <a href="http://playerio.com/download/">http://playerio.com/download/</a></p>
<p>Documentation: <a href="http://playerio.com/documentation/">http://playerio.com/documentation/</a></p>
<h2>Come2Play</h2>
<p>Come2Play platform is for single player as well as multiplayer. It’s having features like leader board, viral messaging, in-game money, banner ads, and lobby for multiplayer games.</p>
<p>Download and Resources: <a href="http://www.come2play.com/developer.asp">http://www.come2play.com/developer.asp</a></p>
<h1><span class="Apple-style-span" style="font-size:20px;"><br />
</span></h1>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=102&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2011/04/15/some-useful-flash-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Start with Flash based Virtual World</title>
		<link>http://tusharvaghela.wordpress.com/2009/09/24/getting-start-with-flash-based-virtual-world/</link>
		<comments>http://tusharvaghela.wordpress.com/2009/09/24/getting-start-with-flash-based-virtual-world/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 06:31:02 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Open Space Engine]]></category>
		<category><![CDATA[SmartFox]]></category>
		<category><![CDATA[Virtual World]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=66</guid>
		<description><![CDATA[Developing Virtual World is a huge task, but if we break the task list, here is first step. In this example I have integrated SmartFox with OpenSpace. Software Check List 1. SmartFox Server (http://www.smartfoxserver.com/products/) 2. Open Space Engine (http://www.openspace-engine.com/evaluate.php) 3.IIS or any local server i.e. WAMP (http://www.wampserver.com/en/download.php) Install SmartFox (You can install any version of &#8230; <a href="http://tusharvaghela.wordpress.com/2009/09/24/getting-start-with-flash-based-virtual-world/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=66&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Developing Virtual World is a huge task, but if we break the task list, here is first step.</p>
<blockquote><p>In this example I have integrated SmartFox with OpenSpace.</p></blockquote>
<p>Software Check List<br />
1. SmartFox Server (<a href="http://www.smartfoxserver.com/products/" target="_blank">http://www.smartfoxserver.com/products/</a>)<br />
2. Open Space Engine (<a href="http://www.openspace-engine.com/evaluate.php" target="_blank">http://www.openspace-engine.com/evaluate.php</a>)<br />
3.IIS or any local server i.e. WAMP (<a href="http://www.wampserver.com/en/download.php" target="_blank">http://www.wampserver.com/en/download.php</a>)</p>
<ul>
<li>Install SmartFox (You can install any version of SmarFox Lit, Basic or Pro)</li>
<li>Start SmartFox Server. Programs-SmartFox Server-Start SmartFox Server</li>
<li>Start Admin Tool.  Programs-SmartFox Server-Admin-Admin Tool</li>
<li>Login Using Default Setting Server IP <em>127.0.0.1</em>, Port <em>9339</em>, User Name <em>sfs_admin</em>, Password <em>sfs_pass</em></li>
<li>Click Config.xml Tab</li>
<li>Under Zones Tag Add the Following</li>
</ul>
<p><code><br />
&lt;Zone name="openspace" uCountUpdate="true" maxUsers="200" customLogin="false"&gt;<br />
&lt;Rooms&gt;<br />
&lt;Room name="Ranch (inside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" /&gt;<br />
&lt;Room name="Ranch (outside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" /&gt;<br />
&lt;Room name="Slopes area" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" /&gt;<br />
&lt;/Rooms&gt;<br />
&lt;/Zone&gt;</code></p>
<ul>
<li>Extract the &#8220;OpenSpace_trial.zip&#8221;  and go to the following folder &#8220;\OpenSpace_trial\OpenSpace_trial\Examples&#8221;</li>
<li>Copy &#8220;FarWest_Ranch&#8221; and &#8220;Slopes&#8221; to loacalhost root. (C:\Inetpub\wwwroot)</li>
</ul>
<ul>
<li>Open Your browser and type &#8220;http://localhost/FarWest_Ranch/OpenSpace_tester.html&#8221; or http://localhost/Slopes/OpenSpace_tester.html&#8221; and see your character moving into virtual world.</li>
</ul>
<p>You can edit the world using Editor Which is Located at &#8220;\OpenSpace_trial\Editor\OpenSpaceEditor_trial.air&#8221; (You need to install it)</p>
<p>You can edit avatar by editing following file &#8220;\OpenSpace_trial\OpenSpace_trial\Examples\FarWest_Ranch\libraries\AvatarsLibraryExample.fla&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=66&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2009/09/24/getting-start-with-flash-based-virtual-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Shuffling Array in Flash</title>
		<link>http://tusharvaghela.wordpress.com/2008/12/10/shuffling-array-in-flash/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/12/10/shuffling-array-in-flash/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:59:17 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Shuffle]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=43</guid>
		<description><![CDATA[We often need to shuffle array in flash but flash is not having any in-built function to shuffle the array. Here is code to shuffle the array in a simple manner. Please convert smart quotes to normal quote before pasting the following code to flash // Initinal Value of the Array var aData:Array = new &#8230; <a href="http://tusharvaghela.wordpress.com/2008/12/10/shuffling-array-in-flash/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=43&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We often need to shuffle array in flash but flash is not having any in-built function to shuffle the array.<br />
Here is code to shuffle the array in a simple manner.</p>
<blockquote><p>Please convert smart quotes to normal quote before pasting the following code to flash</p></blockquote>
<p>// Initinal Value of the Array<br />
var aData:Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);</p>
<p>trace(&#8216;Before Shuffling : aData = {&#8216;+aData+&#8217;}');// Before Shuffling : aData = {1,2,3,4,5,6,7,8,9,10}</p>
<p>for (i=0; i&lt;aData.length; i++) {</p>
<p>//This will fetch the value at random index and save it in nData<br />
var nData:Array = aData.splice(randRange(0, aData.length-1), 1);</p>
<p>//This will store the nData value to end of the same array<br />
aData.push(nData[0]);<br />
}</p>
<p>trace(&#8216;After Shuffling : aData = {&#8216;+aData+&#8217;}');// After Shuffling : aData = {5,6,1,3,7,10,2,9,8,4}</p>
<p>function randRange(min:Number, max:Number):Number {<br />
var randomNum:Number = Math.floor(Math.random()*(max-min+1))+min;<br />
return randomNum;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=43&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/12/10/shuffling-array-in-flash/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Flash with open social</title>
		<link>http://tusharvaghela.wordpress.com/2008/06/26/using-flash-with-open-social/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/06/26/using-flash-with-open-social/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 02:44:52 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Open Social]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Orkut]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=38</guid>
		<description><![CDATA[Open Social is a google api for social applications across multiple websites. With standard JavaScript and HTML, we can create apps that access a social network&#8217;s friends and update feeds. I have used social api to create the Orkut Application, and found that it&#8217;s really very very easy to build orkut app. Here is the &#8230; <a href="http://tusharvaghela.wordpress.com/2008/06/26/using-flash-with-open-social/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=38&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Open Social is a google api for social applications across multiple websites. With standard JavaScript and HTML, we can create apps that access a social network&#8217;s friends and update feeds.</p>
<p>I have used social api to create the Orkut Application, and found that it&#8217;s really very very easy to build orkut app.</p>
<p>Here is the sample app xml which you can use to create your orkut app.</p>
<p>//&#8212;&#8211; XML Starts from here</p>
<p><code><br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Module&gt;<br />
 &lt;ModulePrefs title="____YOUR_APP_TITLE____"&gt;<br />
  &lt;Require feature="opensocial-0.7"/&gt;<br />
 &lt;/ModulePrefs&gt;<br />
 &lt;Content type="html"&gt;&lt;![CDATA[<br />
&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a href="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0</a>" width="765" height="500" id="____YOUR_APP_ID____(This is name of your swf file with out extention, not orkut application id)" align="middle"&gt;<br />
 &lt;param name="allowScriptAccess" value="always"/&gt;<br />
 &lt;param name="movie" value="____FULL_PATH_OF_YOUR_SWF____"/&gt;<br />
 &lt;param name="quality" value="high"/&gt;<br />
 &lt;param name="bgcolor" value="#ffffff"/&gt;<br />
 &lt;embed src="____FULL_PATH_OF_YOUR_SWF____" quality="high" bgcolor="#ffffff" width="765" height="500" name="____YOUR_APP_NAME____" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="<a href="http://www.macromedia.com/go/getflashplayer">http://www.macromedia.com/go/getflashplayer"/</a>&gt;<br />
&lt;/object&gt;<br />
    ]]&gt;&lt;/Content&gt;<br />
&lt;/Module&gt;</code><br />
 </p>
<p>//&#8212;&#8211;XML Ended</p>
<p> </p>
<p>Now some points to remember</p>
<p>1. When you copy this code to any editor, don&#8217;t forget to replace smart-qoute with standard quotes.</p>
<p>2. As Application is on your domain only use full path like <a href="http://www.yoursite.com/yourfolder/yourfile.swf">http://www.yoursite.com/yourfolder/yourfile.swf</a> for all images, mp3, js or any file used in your app.</p>
<p>3. Use crossdomain policy file.</p>
<p>//&#8212;- Save this as crossdomain.xml and put it on same folder, where your .swf recides</p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;!DOCTYPE cross-domain-policy SYSTEM &#8220;<a href="http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd</a>&#8220;&gt;<br />
&lt;cross-domain-policy&gt;<br />
&lt;allow-access-from domain=&#8221;*&#8221; /&gt;<br />
&lt;/cross-domain-policy&gt;</p>
<p>//&#8212;</p>
<p>Please update &#8220;allow-access-from domain&#8221; as per your need.</p>
<p>4. For any commnocation with social api use External Interface.</p>
<p>5. In object tag update &#8220;param-name&#8221; &#8221;allowScriptAccess&#8221;, from &#8220;sameDomain&#8221; to &#8220;always&#8221;</p>
<p>6. When you update the .xml file use &amp;bpc=1 in URL, it will bypass the Orkut Application XML Cacheing, e.g. <a href="http://sandbox.orkut.com/Application.aspx?uid=XXXXXXXXXXXX&amp;appId=XXXXXXXX&amp;bpc=1">http://sandbox.orkut.com/Application.aspx?uid=XXXXXXXXXXXX&amp;appId=XXXXXXXX<strong>&amp;bpc=1</strong></a></p>
<p><strong></strong></p>
<p><strong>Here are some useful Links</strong></p>
<p> Getting Started Videos (Must see!!!!!!!!!!!!!!!!!!!)</p>
<p><a href="http://www.youtube.com/view_play_list?p=5F0F046F77B7B62A">http://www.youtube.com/view_play_list?p=5F0F046F77B7B62A</a></p>
<p>OpenSocial API Documentation</p>
<p><a href="http://code.google.com/apis/opensocial/docs/index.html">http://code.google.com/apis/opensocial/docs/index.html</a></p>
<p>OpenSocial API Developer&#8217;s Guide (v0.7)</p>
<p><a href="http://code.google.com/apis/opensocial/docs/0.7/devguide.html">http://code.google.com/apis/opensocial/docs/0.7/devguide.html</a></p>
<p>Orkut Documentation</p>
<p><a href="http://code.google.com/apis/orkut/docs/index.html">http://code.google.com/apis/orkut/docs/index.html</a></p>
<p>Orkut Developer&#8217;s Guide</p>
<p><a href="http://code.google.com/apis/orkut/docs/orkutdevguide.html">http://code.google.com/apis/orkut/docs/orkutdevguide.html</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tusharvaghela.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tusharvaghela.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=38&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/06/26/using-flash-with-open-social/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Life&#8217;s Little Instruction Book</title>
		<link>http://tusharvaghela.wordpress.com/2008/06/19/lifes-little-instruction-book/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/06/19/lifes-little-instruction-book/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 02:03:47 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Book]]></category>
		<category><![CDATA[H. Jackson Brown]]></category>
		<category><![CDATA[Life's Little Instruction Book]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=35</guid>
		<description><![CDATA[This sunday I found a wonderful book. Name is &#8220;Life&#8217;s Little Instruction Book&#8221; by H. Jackson Brown, Jr. It is having 1500+ advices rather instructions. here is some for you all. Compliment three people everyday Watch sunrise at least once a year Remember other people&#8217;s birthdays Learn to play any music instrument Buy great books, &#8230; <a href="http://tusharvaghela.wordpress.com/2008/06/19/lifes-little-instruction-book/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=35&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This sunday I found a wonderful book. Name is &#8220;Life&#8217;s Little Instruction Book&#8221; by H. Jackson Brown, Jr.</p>
<p>It is having 1500+ advices rather instructions. here is some for you all.</p>
<p style="text-align:center;"><a href="http://www.amazon.com/gp/reader/1401603327/ref=sib_dp_pt#reader-link"><img class="aligncenter" src="http://ecx.images-amazon.com/images/I/61PPYM0DDJL._SL500_BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg" alt="Life's Little Instruction Book" width="240" height="240" /></a></p>
<ul>
<li>Compliment three people everyday</li>
<li>Watch sunrise at least once a year</li>
<li>Remember other people&#8217;s birthdays</li>
<li>Learn to play any music instrument</li>
<li>Buy great books, even if you never read them</li>
<li>Learn to make delicious food</li>
<li>Be the first one to say &#8220;Hello.&#8221;</li>
<li>Plant a tree on your birthday</li>
<li>Make new friends but cherish the old ones</li>
<li>Never giveup on anybody, Miracles do happen every day</li>
<li>Always put cap back on toothpaste</li>
<li>Vote</li>
<li>Give to charity all the clothes you haven&#8217;t worn during the past year</li>
<li>Don&#8217;t Smoke</li>
<li>Refill water bottle after drinking</li>
<li>Think big thoughts, but relish small pleasures</li>
<li>Never Cheat</li>
<li>Learn to identify local flower, birds and trees</li>
<li>Remember peoples name</li>
<li>Turn off the TV at dinner time</li>
<li>Be your wife&#8217;s best friend</li>
<li>Show respect for all living things</li>
<li>Never cut what can be untied</li>
<li>Make video of your parents memories of how they met and their first year of marrige</li>
<li>Hire people smarter than you</li>
<li>As soon as you get married, start saving for yout childrens education</li>
<li>Choose a seat next to the emergency exit when flying. you will get more leg room</li>
<li>Remember the ones who love you</li>
<li>Remember that it&#8217;s better to cheat in price than in quality</li>
<li>Be happy for what you have while working for what you want</li>
<li>Be grateful thatgod dosen&#8217;t answer all your prayers</li>
<li>Don&#8217;t take good friend, good health or a good marriage for granted</li>
</ul>
<p>Hope you&#8217;ll find it interesting too.</p>
<p><a href="http://www.instructionbook.com/">web site of H. Jackson Brown, Jr</a><br />
<br />
<a href="http://www.amazon.com/Complete-Lifes-Little-Instruction-Book/dp/1401603327/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1213840772&amp;sr=1-2">Buy this book from Amazon</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tusharvaghela.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tusharvaghela.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=35&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/06/19/lifes-little-instruction-book/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>

		<media:content url="http://ecx.images-amazon.com/images/I/61PPYM0DDJL._SL500_BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg" medium="image">
			<media:title type="html">Life's Little Instruction Book</media:title>
		</media:content>
	</item>
		<item>
		<title>Fake Gravity Algo</title>
		<link>http://tusharvaghela.wordpress.com/2008/06/05/fake-gravity-algo/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/06/05/fake-gravity-algo/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 14:47:47 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Algo]]></category>
		<category><![CDATA[Gravity]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=33</guid>
		<description><![CDATA[Hi, This is the fake Gravity algo. I have copied this from book &#8220;Flash MX 2004 Game Design&#8221;. //————– Copy from here ——————- // Object require on Stage // ball:MovieClip &#8211; Idally with a circle or whatever you want. var ymov:Number = 0; // var gravity:Number = 2; ball.onEnterFrame = function() {   ymov += gravity; &#8230; <a href="http://tusharvaghela.wordpress.com/2008/06/05/fake-gravity-algo/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=33&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>This is the fake Gravity algo. I have copied this from book &#8220;Flash MX 2004 Game Design&#8221;.</p>
<p>//————– Copy from here ——————-</p>
<p>// Object require on Stage</p>
<p>// ball:MovieClip &#8211; Idally with a circle or whatever you want.</p>
<p>var ymov:Number = 0;<br />
//<br />
var gravity:Number = 2;<br />
ball.onEnterFrame = function() { <br />
 ymov += gravity;<br />
 ball._y += ymov;<br />
 if (ball._y&gt;(Stage.height &#8211; ball._height)) {<br />
  ball._y = Stage.height &#8211; ball._height;<br />
  ymov *= -1;<br />
 }<br />
};</p>
<p>//————– Stop Copying ——————-</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tusharvaghela.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tusharvaghela.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=33&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/06/05/fake-gravity-algo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Tween Class</title>
		<link>http://tusharvaghela.wordpress.com/2008/06/03/tween-class/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/06/03/tween-class/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 13:06:24 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Tween]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=30</guid>
		<description><![CDATA[Tween class is preety smilple and very very useful. I have not used it till last month and after using it I always think that If I had spend 1hr on this class before 2 years, Icould make many application more interesting. (Specially some Drag &#38; Drops) Here is one example of Tween Class. You &#8230; <a href="http://tusharvaghela.wordpress.com/2008/06/03/tween-class/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=30&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Tween class is preety smilple and very very useful. I have not used it till last month and after using it I always think that If I had spend 1hr on this class before 2 years, Icould make many application more interesting. (Specially some Drag &amp; Drops)</p>
<p>Here is one example of Tween Class.</p>
<p>You need to put one movieClip named &#8220;mcObject&#8221; on Stage and paste the code in Action Layer.</p>
<p>//————– Copy from here ——————-</p>
<p>import mx.transitions.Tween;</p>
<p>import mx.transitions.easing.*;</p>
<p>//</p>
<p>var mcObject:MovieClip;</p>
<p>//</p>
<p>mcObject.onPress = pressHandler;</p>
<p>mcObject.onRelease = mcObject.onReleaseOutside=releaseHandler;</p>
<p>//</p>
<p>function pressHandler() {</p>
<p>//trace(&#8220;pressHandler called with ["+arguments+"]&#8220;);</p>
<p>this.oldX = this._x;</p>
<p>this.oldY = this._y;</p>
<p>this.startDrag();</p>
<p>}</p>
<p>//</p>
<p>function releaseHandler() {</p>
<p>//trace(&#8220;releaseHandler called with ["+arguments+"]&#8220;);</p>
<p>this.stopDrag();</p>
<p>var xTween:Tween = new Tween(this, &#8220;_x&#8221;, Bounce.easeOut, this._x, this.oldX, 5, true);</p>
<p>var yTween:Tween = new Tween(this, &#8220;_y&#8221;, Bounce.easeOut, this._y, this.oldY, 5, true);</p>
<p>}</p>
<p>//————– Stop Copying ——————-</p>
<p>You can take offical help on Tween class from <a href="http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00001502.html" target="_blank">here</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tusharvaghela.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tusharvaghela.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=30&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/06/03/tween-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
		<item>
		<title>Jump Algo in Flash</title>
		<link>http://tusharvaghela.wordpress.com/2008/05/31/jump-algo-in-flash/</link>
		<comments>http://tusharvaghela.wordpress.com/2008/05/31/jump-algo-in-flash/#comments</comments>
		<pubDate>Sat, 31 May 2008 06:39:57 +0000</pubDate>
		<dc:creator>Tushar Vaghela</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Algo]]></category>
		<category><![CDATA[Jump]]></category>

		<guid isPermaLink="false">http://tusharvaghela.wordpress.com/?p=28</guid>
		<description><![CDATA[Hi, I could not fullfill promise that I&#8217;ll post daily but I am trying&#8230;.. This post is for Flash Developers who are doing game programming. Open new Flash File, Create one MovieClip and Paste this code on MovieClip (Bad Practice, but focus on what it&#8217;s doing) //&#8212;&#8212;&#8212;&#8212;&#8211; Copy from here &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- //This is settign the &#8230; <a href="http://tusharvaghela.wordpress.com/2008/05/31/jump-algo-in-flash/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=28&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I could not fullfill promise that I&#8217;ll post daily but I am trying&#8230;..</p>
<p>This post is for Flash Developers who are doing game programming.</p>
<p>Open new Flash File, Create one MovieClip and Paste this code on MovieClip (Bad Practice, but focus on what it&#8217;s doing)</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8211; Copy from here &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<code><br />
//This is settign the initial values onLoad<br />
onClipEvent (load) {</p>
<p style="padding-left:30px;">
//Speed of the Object<br />
//More Speed will make object go higher in sky....<br />
//This can be mass of the object<br />
startspeed = 10;<br />
//Amount of Gravity, 9.8 is standard Gravity<br />
//Use 0 as gravity and your object will be lost in space<br />
//Will never come down...<br />
//Can be used for animated background, with some random wind algo.<br />
gravity = 9.8;<br />
//Current Status<br />
jumping = false;<br />
//Initial position<br />
startpos = 0;
</p>
<p>}<br />
onClipEvent (enterFrame) {</p>
<p style="padding-left:30px;">
//If user press up key and object is not jumping<br />
//This will make object jump<br />
if ((Key.isDown(87) or Key.isDown(Key.UP)) and jumping == false) {
</p>
<p style="padding-left:60px;">
jumping = true;<br />
starttime = getTimer()/1000;<br />
startpos = this._y;
</p>
<p style="padding-left:30px;">
}else if(Key.isDown(Key.LEFT)){</p>
<p style="padding-left:60px;">
_x -=5;
</p>
<p style="padding-left:30px;">
}else if(Key.isDown(Key.RIGHT)){</p>
<p style="padding-left:60px;">
_x +=5;
</p>
<p style="padding-left:30px;">
}<br />
if (jumping) {
</p>
<p style="padding-left:60px;">
time = getTimer()/1000-starttime;<br />
_y -= (startspeed-gravity*time);<br />
if (_y&gt;startpos) {
</p>
<p style="padding-left:90px;">
_y = startpos;<br />
jumping = false;
</p>
<p style="padding-left:60px;">
}
</p>
<p style="padding-left:30px;">
}
</p>
<p>}<br />
</code></p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8211; Stop Copying  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This code is taken from <a href="http://www.video-animation.com/flash_06.shtml">http://www.video-animation.com/flash_06.shtml</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tusharvaghela.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tusharvaghela.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tusharvaghela.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tusharvaghela.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tusharvaghela.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tusharvaghela.wordpress.com&amp;blog=299166&amp;post=28&amp;subd=tusharvaghela&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tusharvaghela.wordpress.com/2008/05/31/jump-algo-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8272ff1ee0448b91fcf6ffa9ad2a64f4?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">tusharvaghela</media:title>
		</media:content>
	</item>
	</channel>
</rss>
