<?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>Leonardo França &#187; Flash</title>
	<atom:link href="http://www.leonardofranca.com/index.php/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonardofranca.com</link>
	<description>Flash Platform Consultant and Developer (Adobe AIR/Flex/Flash/Flash Media Server/PHP/Java/.NET)</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:05:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>New Adobe Flash Player 11.2 beta for Desktops and Adobe AIR 3.2 beta</title>
		<link>http://www.leonardofranca.com/index.php/2012/02/01/new-adobe-flash-player-11-2-beta-for-desktops-and-adobe-air-3-2-beta/</link>
		<comments>http://www.leonardofranca.com/index.php/2012/02/01/new-adobe-flash-player-11-2-beta-for-desktops-and-adobe-air-3-2-beta/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 10:23:07 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Platform]]></category>
		<category><![CDATA[Flash Player]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1224</guid>
		<description><![CDATA[The Adobe® Flash® Platform runtimes, Adobe Flash Player and Adobe AIR®, together enable businesses to efficiently deliver rich customer experiences across multiple digital touch points. With Flash Player and AIR, content can easily and consistently move between the browser, standalone &#8230; <a href="http://www.leonardofranca.com/index.php/2012/02/01/new-adobe-flash-player-11-2-beta-for-desktops-and-adobe-air-3-2-beta/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Adobe® Flash® Platform runtimes, Adobe Flash Player and Adobe AIR®, together enable businesses to efficiently deliver rich customer experiences across multiple digital touch points. With Flash Player and AIR, content can easily and consistently move between the browser, standalone applications and native operating systems to reach users on the devices of their choice. Since the Adobe runtimes share a common codebase, developers can reuse code to deploy game console quality 2D and 3D games, rich media applications with premium high definition video and scalable date driven applications though both AIR and Flash Player. <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<blockquote><p>Note that this is the last beta before final release.</p></blockquote>
<p><strong>Adobe AIR 3.2 Beta</strong><br />
<a href="http://labs.adobe.com/technologies/flashplatformruntimes/air3-2/">http://labs.adobe.com/technologies/flashplatformruntimes/air3-2/</a></p>
<p><strong>Adobe Flash Player 11.2 Beta for Desktops</strong><br />
<a href="http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11-2/">http://labs.adobe.com/technologies/flashplatformruntimes/flashplayer11-2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2012/02/01/new-adobe-flash-player-11-2-beta-for-desktops-and-adobe-air-3-2-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player for Nokia E5, 5235, E63&#8230;</title>
		<link>http://www.leonardofranca.com/index.php/2012/02/01/flash-player-for-nokia-e5-5235-e63/</link>
		<comments>http://www.leonardofranca.com/index.php/2012/02/01/flash-player-for-nokia-e5-5235-e63/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 09:58:49 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1211</guid>
		<description><![CDATA[I have received many requests related to the person seeking the release of Flash Player for Nokia E5, 5235, E63 &#8230;. To help point out the Flash Lite 4 Nokia site that has the model of the Nokia device and &#8230; <a href="http://www.leonardofranca.com/index.php/2012/02/01/flash-player-for-nokia-e5-5235-e63/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have received many requests related to the person seeking the release of <strong>Flash Player for Nokia E5, 5235, E63</strong> &#8230;. To help point out the <a href="http://www.flashlite4nokia.com">Flash Lite 4 Nokia</a> site that has the model of the Nokia device and version of the <strong>Flash Player</strong> (<strong>Flash Lite</strong>) compatible.<br />
It is important to understand the <strong>difference between the desktop Flash Lite and Flash Player</strong>. Flash Lite is a customized version of the Flash Player to run on mobile devices, but does not have all the features of the player for desktop. Many sites and applications you use on the web, not able to use the phone, by limitations of the device and player.<br />
<span id="more-1211"></span><br />
Below is a list of versions of Flash Player and Flash Lite equivalent. A lot of attention because it is <strong>equivalent </strong> is different from <strong>equal</strong>.</p>
<ul>
<li>Macromedia Flash Lite 1.0 based on Flash Player 4</li>
<li>Macromedia Flash Lite 1.1</li>
<li>Macromedia Flash Lite 2.0 (December 2005) released in 2005, which brought its capabilities in line with Flash Player 7</li>
<li>Adobe Flash Lite 2.1 (December 2006) running on the BREW platform</li>
<li>Adobe Flash Lite 3 (Announced on February 2007) support for FLV transcoding, equivalent to desktop Flash Player 8</li>
<li>Adobe Flash Lite 3.1 (February 2009) player turbocharged with some features of Flash Player 9</li>
<li>Adobe Flash Lite 4 has been released (2010) and integrated in Symbian^3, has ActionScript 3.0 support, equivalent to desktop Flash Player 10</li>
</ul>
<p><a href="http://en.wikipedia.org/wiki/Adobe_Flash_Lite">SOURCE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2012/02/01/flash-player-for-nokia-e5-5235-e63/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Flash Games</title>
		<link>http://www.leonardofranca.com/index.php/2012/01/27/create-flash-game/</link>
		<comments>http://www.leonardofranca.com/index.php/2012/01/27/create-flash-game/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 15:20:28 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1185</guid>
		<description><![CDATA[If you want to enter this rapidly expanding market in 2012, following some tutorials created by Emanuele Feronato showing simple and objective way of creating games using Adobe Flash Part 1 http://www.emanueleferonato.com/2006/10/29/flash-game-creation-tutorial-part-1/ the end of each tutorial has a link &#8230; <a href="http://www.leonardofranca.com/index.php/2012/01/27/create-flash-game/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/129585295_b28533f268-e1300201214822.jpg" alt="" title="129585295_b28533f268" width="120" height="129" class="alignleft size-full wp-image-1649" />If you want to enter this rapidly expanding market in 2012, following some tutorials created by <a href="http://www.emanueleferonato.com">Emanuele Feronato</a> showing simple and objective way of creating games using Adobe Flash</p>
<hr />
Part 1<br />
<a href="http://www.emanueleferonato.com/2006/10/29/flash-game-creation-tutorial-part-1/">http://www.emanueleferonato.com/2006/10/29/flash-game-creation-tutorial-part-1/</a><span id="more-1185"></span></p>
<blockquote><p>the end of each tutorial has a link to the following tutorial</p></blockquote>
<h3>Flash physics engine</h3>
<p>Adobe Flash offers a huge range of possibilities for game development and more recently with the Stage3D of Flash Player (codenamed Molehill), this has only increased and much freedom developers. <strong><a href="http://alternativaplatform.com/en/demos/maxracer/">Stage3D lets you create games to run in the browser(or Adobe AIR) with the quality of games we see on consoles like the Xbox 360 and PlayStation 3.</a></strong><br />
For some games it is essential to have a physical simulation (gravity, action and reaction, collisions, etc.), so-called physics engines, which are well known by staff who have already developed on other platforms for specific games. Some physics engines for Adobe Flash are:</p>
<ul>
<li><a href="http://box2dflash.sourceforge.net" target="_blank">Box2DFlash</a> — This Flash physics engine is based on the widely recognized Box2D engine from C++.</li>
<li><a href="http://code.google.com/p/glaze/" target="_blank">Glaze</a> — This one is based on the Chipmunk engine from C++. Beyond physics, this library also features scene management, line of sight, user input, scrolling, and AI.</li>
<li><a href="http://code.google.com/p/jiglibflash/" target="_blank">JigLibFlash</a></li>
</ul>
<p><a href="http://www.adobe.com/devnet/flashplayer/stage3d.html">See too somes Frameworks and libraries for Stage 3D</a>.</p>
<h3>useful links</h3>
<p><a href="http://www.leonardofranca.com/index.php/2011/03/16/make-your-site-online-games-done-with-flash/">Make your site online games done with Flash</a><br />
<a href="http://www.leonardofranca.com/index.php/2011/03/17/monetize-your-flash-games/">Monetize your Flash Games</a><br />
<a href="http://www.adobe.com/devnet/games/gaming_engines.html">Gaming engines, 3D, and Stage 3D</a><br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/stage3d-programmers-guide.html">Excerpt: Adobe Flash 11 Stage3D (Molehill) Game Programming Beginner’s Guide</a></p>
<p><a href="https://www.mochimedia.com/r/462d79509cd981af"><img src="http://www.mochimedia.com/static/web/images/badge_468x60.gif" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2012/01/27/create-flash-game/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash Player focused on Games</title>
		<link>http://www.leonardofranca.com/index.php/2012/01/26/flash-player-focused-on-games/</link>
		<comments>http://www.leonardofranca.com/index.php/2012/01/26/flash-player-focused-on-games/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 22:21:26 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Stage3D]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1178</guid>
		<description><![CDATA[A few months ago, we saw Flash Player 11 and AIR 3 with Stage3D support, since we shipped we have seen great response from the developers and amazing content being developed. Today, over 50% of users with Flash Player 11 &#8230; <a href="http://www.leonardofranca.com/index.php/2012/01/26/flash-player-focused-on-games/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/129585295_b28533f268-e1300201214822.jpg" alt="" title="129585295_b28533f268" width="120" height="129" class="alignleft size-full wp-image-1649" />A few months ago, we saw Flash Player 11 and AIR 3 with Stage3D support, since we shipped we have seen great response from the developers and amazing content being developed. Today, over 50% of users with Flash Player 11 will enjoy full hardware acceleration for Stage3D content.</p>
<p>See more details from blog of the producers of Flash Player.<br />
<a href="http://blogs.adobe.com/flashplayer/2012/01/introducing-flash-player-11-2-and-air-3-2-beta4.html">http://blogs.adobe.com/flashplayer/2012/01/introducing-flash-player-11-2-and-air-3-2-beta4.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2012/01/26/flash-player-focused-on-games/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharedObject with Flash Media Server</title>
		<link>http://www.leonardofranca.com/index.php/2012/01/03/sharedobject-with-flash-media-server/</link>
		<comments>http://www.leonardofranca.com/index.php/2012/01/03/sharedobject-with-flash-media-server/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 03:01:10 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Media Server]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1123</guid>
		<description><![CDATA[SharedObject is a feature that give Flash Player the ability to save data locally to be used later in your application, roughly speaking is like a cookie. With Flash Media Server, was introduced the possibility of using the SharedObject Remote, &#8230; <a href="http://www.leonardofranca.com/index.php/2012/01/03/sharedobject-with-flash-media-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/12/fms_appicon_lg.jpg.adimg_.mw_.138.png" alt="" title="fms_appicon_lg.jpg.adimg.mw.138" width="138" height="138" class="alignleft size-full wp-image-2050" />SharedObject is a feature that give Flash Player the ability to save data locally to be used later in your application, roughly speaking is like a cookie. With Flash Media Server, was introduced the possibility of using the SharedObject Remote, in which the data is saved in Flash Media Server and shared for all instances of a connection between Flash Player and Flash Media Server. This enables you to create applications in real time as Dashboard, chats and whatever else your imagination allows<span id="more-1123"></span>.</p>
<p>The SharedObject Remote can be used in two ways in conjunction with Adobe Flash Media Server.</p>
<ul>
<li><strong>Only the client side, via the Flash Player/AIR</strong></li>
<li><strong>Together with ActionScript Communication, server-side programmgin in Flash Media Server</strong></li>
</ul>
<p>Consider the first case:</p>
<h3>Through the client side, via the Flash Player/AIR</h3>
<p>If you have no knowledge to use the language of the Server-side Flash Media Server, you can use the SharedObject Remote only by ActionScript 3.0. Let's sharedBall a classic example, where the goal is to share the positions of the ball to update the other clients connected to the same instance.</p>
<ul>
<li>Go to the installation directory of the Flash Media Server and browse to the folder "applications", there create a directory called "sharedBall" inside a file called "main.asc"</li>
<li>Open main.asc in your text editor or preferably by the Flash and enter: trace ("sharedBall ...");</li>
<li>Let's test this file, open the Flash Media Server console, usually located in the installation directory / webrrot / swfs. You can open the browser or the swf directly.</li>
<li>Click the "View Applications" and then search for the name "sharedBall" in the combobox at the very bottom left corner where it says "New Instance ..."</li>
<li>Select "sharedBall" tab and we should have something like Live Log in the image below:</li>
</ul>
<p><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/12/console_fms_sharedball.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/12/console_fms_sharedball-1024x575.jpg" alt="" title="console_fms_sharedball" width="610" height="342" class="aligncenter size-large wp-image-2070" /></a></p>
<ul>
<li>In Flash, I created a ball with the drawing tools and converted to give the name of MovieClip "mc_ball."</li>
<li>We are ready to begin the integration between Flash and Flash Media Server. Create a layer for ActionScript and open the editor by pressing F9, or "Window-> Actions" </li>
<li>Our code begins with the connection to the server Flash Media Server</li>
</ul>
<div class="igBar"><span id="lactionscript3-11"><a href="#" onclick="javascript:showPlainTxt('actionscript3-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-11">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span>.<a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> nc<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>.<span style="color: #004993;">NET_STATUS</span>, handlerNetStatus<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc.<span style="color: #004993;">connect</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;rtmp://localhost/sharedBall&quot;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerNetStatus<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>evt.<span style="color: #004993;">info</span>.<span style="color: #004993;">code</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
That done, we can test the swf by pressing Ctrl + Enter, if all goes well, we have the following message in the output Flash:</p>
<blockquote><p>NetConnection.Connect.Success</p></blockquote>
<p>With the connection made, we can instantiate our Remote SharedObject to share the x and y positions of the ball.</p>
<div class="igBar"><span id="lactionscript3-12"><a href="#" onclick="javascript:showPlainTxt('actionscript3-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-12">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>evt.<span style="color: #004993;">info</span>.<span style="color: #004993;">code</span> == <span style="color: #990000;">&quot;NetConnection.Connect.Success&quot;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so = <a href="http://www.google.com/search?q=sharedobject%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sharedobject.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SharedObject</span></a>.<span style="color: #004993;">getRemote</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;so&quot;</span>,nc.<span style="color: #004993;">uri</span>,<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>.<span style="color: #004993;">NET_STATUS</span>, handlerNetStatus<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=syncevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:syncevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SyncEvent</span></a>.<span style="color: #004993;">SYNC</span>, handlerSync<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">connect</span><span style="color: #000000;">&#40;</span>nc<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
The handlerSync is responsible for updating the data of x and y we will take the SharedObject Remote:</p>
<div class="igBar"><span id="lactionscript3-13"><a href="#" onclick="javascript:showPlainTxt('actionscript3-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-13">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSync<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=syncevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:syncevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SyncEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">x</span> = so.<span style="color: #004993;">data</span>.<span style="color: #004993;">x</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">y</span> = so.<span style="color: #004993;">data</span>.<span style="color: #004993;">y</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
We will give you the option to click on the ball, it can be draggable, then x and y positions will update the SharedObject Remote:</p>
<div class="igBar"><span id="lactionscript3-14"><a href="#" onclick="javascript:showPlainTxt('actionscript3-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-14">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mc_ball.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a>.<span style="color: #004993;">MOUSE_DOWN</span>, handlerSharedBall<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mc_ball.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a>.<span style="color: #004993;">MOUSE_UP</span>, handlerSharedBallOut<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSharedBall<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>.<span style="color: #004993;">ENTER_FRAME</span>, update<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">startDrag</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSharedBallOut<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">stopDrag</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> update<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>=<span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; so.<span style="color: #004993;">setProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;x&quot;</span>,mc_ball.<span style="color: #004993;">x</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; so.<span style="color: #004993;">setProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;y&quot;</span>,mc_ball.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Following is the complete code:</p>
<div class="igBar"><span id="lactionscript3-15"><a href="#" onclick="javascript:showPlainTxt('actionscript3-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-15">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span>.<a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span>.<a href="http://www.google.com/search?q=sharedobject%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sharedobject.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SharedObject</span></a>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<a href="http://www.google.com/search?q=syncevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:syncevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SyncEvent</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> nc<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> so<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=sharedobject%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sharedobject.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SharedObject</span></a>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=netconnection%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netconnection.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetConnection</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>.<span style="color: #004993;">NET_STATUS</span>, handlerNetStatus<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; nc.<span style="color: #004993;">connect</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;rtmp://localhost/sharedBall&quot;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerNetStatus<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span>evt.<span style="color: #004993;">info</span>.<span style="color: #004993;">code</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>evt.<span style="color: #004993;">info</span>.<span style="color: #004993;">code</span> == <span style="color: #990000;">&quot;NetConnection.Connect.Success&quot;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so = <a href="http://www.google.com/search?q=sharedobject%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sharedobject.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SharedObject</span></a>.<span style="color: #004993;">getRemote</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;so&quot;</span>,nc.<span style="color: #004993;">uri</span>,<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=netstatusevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstatusevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStatusEvent</span></a>.<span style="color: #004993;">NET_STATUS</span>, handlerNetStatus<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=syncevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:syncevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SyncEvent</span></a>.<span style="color: #004993;">SYNC</span>, handlerSync<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; so.<span style="color: #004993;">connect</span><span style="color: #000000;">&#40;</span>nc<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSync<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=syncevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:syncevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">SyncEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">x</span> = so.<span style="color: #004993;">data</span>.<span style="color: #004993;">x</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">y</span> = so.<span style="color: #004993;">data</span>.<span style="color: #004993;">y</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mc_ball.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a>.<span style="color: #004993;">MOUSE_DOWN</span>, handlerSharedBall<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mc_ball.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a>.<span style="color: #004993;">MOUSE_UP</span>, handlerSharedBallOut<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSharedBall<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>.<span style="color: #004993;">ENTER_FRAME</span>, update<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">startDrag</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> handlerSharedBallOut<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">MouseEvent</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; mc_ball.<span style="color: #004993;">stopDrag</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> update<span style="color: #000000;">&#40;</span>evt<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>=<span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; so.<span style="color: #004993;">setProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;x&quot;</span>,mc_ball.<span style="color: #004993;">x</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; so.<span style="color: #004993;">setProperty</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;y&quot;</span>,mc_ball.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #004993;">init</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
See a demonstration in operation:<br />
<iframe width="600" height="335" src="http://www.youtube.com/embed/cwHOL7t978Q" frameborder="0" allowfullscreen></iframe></p>
<p><a href="http://www.leonardofranca.com/index.php/projects/">More source and PDFs click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2012/01/03/sharedobject-with-flash-media-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adobe Flash Player 11.1 and Adobe AIR 3.1 available</title>
		<link>http://www.leonardofranca.com/index.php/2011/11/11/adobe-flash-player-11-1-and-adobe-air-3-1-available/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/11/11/adobe-flash-player-11-1-and-adobe-air-3-1-available/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 02:04:11 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1058</guid>
		<description><![CDATA[As a follow-up to the highly anticipated release of Adobe Flash Player 11 and Adobe AIR 3, which included next-generation technologies like the gorgeous,&#160;cinematic 2D and 3D hardware accelerated graphics of Stage 3D. Flash Player 11.1 and Adobe AIR 3.1 &#8230; <a href="http://www.leonardofranca.com/index.php/2011/11/11/adobe-flash-player-11-1-and-adobe-air-3-1-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/adobe_air_2_0-e1300250202414.jpg" alt="" title="adobe_air_2_0" width="120" height="120" class="alignleft size-full wp-image-1679" />As a follow-up to the highly anticipated release of <strong>Adobe Flash Player 11</strong> and <strong>Adobe AIR 3</strong>, which included next-generation technologies like the gorgeous,&nbsp;<a href="http://www.adobe.com/devnet/flashplayer/stage3d.html"><strong>cinematic 2D and 3D hardware accelerated graphics of Stage 3D</strong></a>.<br />
<a href="http://get.adobe.com/flashplayer/" target="_blank"><strong><strong>Flash Player 11.1</strong></strong></a> and <a href="http://get.adobe.com/air/"><strong>Adobe AIR 3.1</strong></a> for desktops and mobile devices.<br />
Read more in <a href="http://blogs.adobe.com/flashplayer/2011/11/adobe-flash-player-11-1-and-adobe-air-3-1-are-now-available.html">Adobe AIR and Adobe Flash Player Team Blog</a><br />
<a href="http://www.adobe.com/go/air_sdk/">Download Adobe AIR SDK</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/11/11/adobe-flash-player-11-1-and-adobe-air-3-1-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using the Update Framework for Adobe AIR</title>
		<link>http://www.leonardofranca.com/index.php/2011/08/22/using-the-update-framework-for-adobe-air/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/08/22/using-the-update-framework-for-adobe-air/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 03:01:43 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=1030</guid>
		<description><![CDATA[One feature that I was more useful in Adobe AIR, was the addition of an API designed to make better automatic update of my application. This can be very important because not all users have the time (or desire) to &#8230; <a href="http://www.leonardofranca.com/index.php/2011/08/22/using-the-update-framework-for-adobe-air/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/adobe_air_2_0-e1300250202414.jpg" alt="" title="adobe_air_2_0" width="120" height="120" class="alignleft size-full wp-image-1679" />One feature that I was more useful in <strong>Adobe AIR</strong>, was the addition of an API designed to make better automatic update of my application. This can be very important because not all users have the time (or desire) to return the application site to download the latest version.<span id="more-1030"></span><br />
This is already routine for operating systems and software that we use in day-to-day as the <strong>Mozilla Firefox</strong> and <strong>Google Chrome</strong> or <strong>TweetDeck</strong>.</p>
<p>From <strong>Adobe AIR</strong> 1.5, we have the class <strong><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/air/update/ApplicationUpdater.html">ApplicationUpdater</a></strong> and <strong><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/air/update/ApplicationUpdaterUI.html">ApplicationUpdaterUI</a></strong> which aims to define the basic functionality to update the applications made with <strong>Adobe AIR</strong></p>
<p>Manage updates and can be tricky, <strong>AIR update framework</strong> has the API's necessary for you to do this in a practical and functional. The developer can, for example:</p>
<ul>
<li>Periodically checking for updates based on an interval or at the request of the user</li>
<li>Downloading AIR files (updates) from a web source</li>
<li>Alerting the user on the first run of the newly installed version</li>
<li>Confirming that the user wants to check for updates</li>
<li>Displaying information on the new update version to the user</li>
<li>Displaying download progress and error information to the user</li>
</ul>
<p>The information is derived from XML files where you say that the latest version of software, new version of the news etc. Let's take a practical example, if you use Flash Builder should already have the files applicationupdater.swc and applicationupdater_ui.swc as a reference in the library.<br />
We started by calling xml updateConfig.xml, that "say" to your application where are the files to update.</p>
<div class="igBar"><span id="lxml-24"><a href="#" onclick="javascript:showPlainTxt('xml-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-24">
<div class="xml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span> </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://ns.adobe.com/air/framework/update/configuration/1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://localhost:81/leonardofranca/air/updates/testeUpdate/updateDescriptor.xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;delay<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/delay<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
It must be saved in the same directory of your application, along with other xml and swf files. Now in Flex, instantiate the class ApplicationUpdateUI and setting the configuration xml file so that Flex can know where is the update.</p>
<div class="igBar"><span id="lactionscript3-25"><a href="#" onclick="javascript:showPlainTxt('actionscript3-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-25">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> appUpdater<span style="color: #000000; font-weight: bold;">:</span>ApplicationUpdaterUI = <span style="color: #0033ff; font-weight: bold;">new</span> ApplicationUpdaterUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">appUpdater.configurationFile = <span style="color: #0033ff; font-weight: bold;">new</span> File<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;app:/updateConfig.xml&quot;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">appUpdater.initialize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">//via ActionScript</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">//appUpdater.updateURL = &quot; http://example.com/updates/update.xml&quot;; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">//appUpdater.delay = 1;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The file updateDescriptor.xml is where you set the version in the update of your application and where you can add a description of the news update.</p>
<div class="igBar"><span id="lxml-26"><a href="#" onclick="javascript:showPlainTxt('xml-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-26">
<div class="xml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span> </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;update</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://ns.adobe.com/air/framework/update/description/2.5&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;versionNumber<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.0.2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/versionNumber<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://localhost:81/leonardofranca/air/updates/testeUpdate/testeUpdate_0.0.2.air<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">This version has fixes for the following knowns issues:</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">*First issue</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">*Second issue &nbsp;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;"> &nbsp;]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/description<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/update<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Basically that's it, we will only implement the call to open the application, it checks if there is update.</p>
<div class="igBar"><span id="lmxml-27"><a href="#" onclick="javascript:showPlainTxt('mxml-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">MXML:</span>
<div id="mxml-27">
<div class="mxml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;s:WindowedApplication</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;windowedapplication1_creationCompleteHandler(event)&quot;</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import air.update.ApplicationUpdaterUI;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import air.update.events.UpdateEvent;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import mx.events.FlexEvent;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var appUpdater:ApplicationUpdaterUI;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function windowedapplication1_creationCompleteHandler<span style="color: #66cc66;">&#40;</span>event:FlexEvent<span style="color: #66cc66;">&#41;</span>:void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater = new ApplicationUpdaterUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater.configurationFile = new File<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;app:/updateConfig.xml&quot;</span><span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater.addEventListener<span style="color: #66cc66;">&#40;</span>ErrorEvent.ERROR, onError<span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater.addEventListener<span style="color: #66cc66;">&#40;</span>UpdateEvent.INITIALIZED, handlerInit<span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater.initialize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //via ActionScript</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //appUpdater.updateURL = <span style="color: #ff0000;">&quot; http://example.com/updates/update.xml&quot;</span>; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //appUpdater.delay = <span style="color: #cc66cc;color:#800000;">1</span>;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function onError<span style="color: #66cc66;">&#40;</span>event:ErrorEvent<span style="color: #66cc66;">&#41;</span>:void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace<span style="color: #66cc66;">&#40;</span>event.text<span style="color: #66cc66;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function handlerInit<span style="color: #66cc66;">&#40;</span>event:UpdateEvent<span style="color: #66cc66;">&#41;</span>:void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appUpdater.checkNow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Declarations</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:WindowedApplication</span><span style="color: #7400FF;">&gt;</span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
I created a second version of my test application for demonstration, we have the following result:<br />
<div id="attachment_1940" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air-300x215.jpg" alt="Check for update" title="update_application_air" width="300" height="215" class="size-medium wp-image-1940" /></a><p class="wp-caption-text">Click to view</p></div></p>
<p>If you want to see if there are any updates of the application, just click on "check for upadates. The updated file is downloaded and installed.<br />
<div id="attachment_1945" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air2.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air2-300x213.jpg" alt="" title="update_application_air2" width="300" height="213" class="size-medium wp-image-1945" /></a><p class="wp-caption-text">Click for view</p></div><br />
<div id="attachment_1946" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air3.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air3-300x213.jpg" alt="" title="update_application_air3" width="300" height="213" class="size-medium wp-image-1946" /></a><p class="wp-caption-text">Click for view</p></div><br />
<div id="attachment_1947" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air4.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/08/update_application_air4-300x213.jpg" alt="" title="update_application_air4" width="300" height="213" class="size-medium wp-image-1947" /></a><p class="wp-caption-text">Click for view</p></div></p>
<p>References:<br />
<a href="http://help.adobe.com/en_US/air/build/WS9CD40F06-4DD7-4230-B56A-88AA27541A1E.html">http://help.adobe.com/en_US/air/build/WS9CD40F06-4DD7-4230-B56A-88AA27541A1E.html</a><br />
<a href="http://www.adobe.com/devnet/air/flex/quickstart/articles/update_framework.html">http://www.adobe.com/devnet/air/flex/quickstart/articles/update_framework.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/08/22/using-the-update-framework-for-adobe-air/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Accessing the camera phone with Adobe AIR for Android</title>
		<link>http://www.leonardofranca.com/index.php/2011/05/09/accessing-the-camera-phone-with-adobe-air-for-android/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/05/09/accessing-the-camera-phone-with-adobe-air-for-android/#comments</comments>
		<pubDate>Mon, 09 May 2011 23:43:53 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=967</guid>
		<description><![CDATA[Adobe AIR for Android can access some hardware features of smartphones. Among some of them we can mention the access to internet, read your phone's status, access network, access the wifi, GPS, sensors, etc.. Adobe AIR can also access the &#8230; <a href="http://www.leonardofranca.com/index.php/2011/05/09/accessing-the-camera-phone-with-adobe-air-for-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/05/16520688952037730882-e1304466757849.png" alt="" title="Icon Camera Android" width="100" height="100" class="alignleft size-full wp-image-1763" /><strong>Adobe AIR for Android </strong>can access some hardware features of smartphones. Among some of them we can mention the access to internet, read your phone's status, access network, access the wifi, GPS, sensors, etc.. Adobe AIR can also access the camera device, and this can be done in two ways.<span id="more-967"></span>.</p>
<blockquote><p>
<strong>Adobe AIR</strong> is available for devices running Android from version 2.2 (<strong>Froyo</strong>)
</p></blockquote>
<p>we have two classes to access the camera with <strong>Adobe AIR for Android</strong>:</p>
<p><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html">http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html</a><br />
The first way to access the camera phone is using the Camera class, classical and already well known for our work in web and desktop environment. Before you can use the method Camera.isSupported, and using cameras to catch the Camera.getCamera().</p>
<p>Usually this class is also used to send the stream from your camera to the <strong>Flash Media Server</strong>(together with the NetStream class) and transmit to web, desktop or mobile. Here's an example usage:</p>
<div class="igBar"><span id="lactionscript3-36"><a href="#" onclick="javascript:showPlainTxt('actionscript3-36'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-36">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> camera<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=camera%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:camera.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Camera</span></a> = <a href="http://www.google.com/search?q=camera%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:camera.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Camera</span></a>.<span style="color: #004993;">getCamera</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>camera <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">video = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=video%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:video.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Video</span></a><span style="color: #000000;">&#40;</span>camera.<span style="color: #004993;">width</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span>, camera.<span style="color: #004993;">height</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">video.<span style="color: #004993;">attachCamera</span><span style="color: #000000;">&#40;</span>camera<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>video<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0033ff; font-weight: bold;">else</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;You need a camera.&quot;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
In getCamera, if not passed any parameters, access the device's main camera, you can access a camera with the index specifies it as a string:</p>
<div class="igBar"><span id="lactionscript3-37"><a href="#" onclick="javascript:showPlainTxt('actionscript3-37'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-37">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> arrCamera<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=array%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:array.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Array</span></a> = <a href="http://www.google.com/search?q=camera%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:camera.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Camera</span></a>.<span style="color: #004993;">names</span>;<span style="color: #009900;">// todas as câmeras como array</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> camera<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=camera%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:camera.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Camera</span></a> = Câmera.<span style="color: #004993;">getCamera</span><span style="color: #000000;">&#40;</span>“<span style="color: #000000; font-weight:bold;color:#800000;">1</span>”<span style="color: #000000;">&#41;</span>;<span style="color: #009900;">//acessando a câmera de indece 1</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraUI.html">http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraUI.html</a><br />
CameraUI is a new class unique to <strong>Adobe AIR for Mobile Devices</strong>, allowing you to capture an image or video application standard camera phone. The image or video is available on the object MediaEvent. Here's an example usage:</p>
<div class="igBar"><span id="lactionscript3-38"><a href="#" onclick="javascript:showPlainTxt('actionscript3-38'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-38">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> deviceCameraApp<span style="color: #000000; font-weight: bold;">:</span>CameraUI = <span style="color: #0033ff; font-weight: bold;">new</span> CameraUI<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6699cc; font-weight: bold;">var</span> imageLoader<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=loader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:loader.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Loader</span></a>; </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">deviceCameraApp.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> MediaEvent.<span style="color: #004993;">COMPLETE</span>, imageCaptured <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deviceCameraApp.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>.<span style="color: #004993;">CANCEL</span>, captureCanceled <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deviceCameraApp.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <a href="http://www.google.com/search?q=errorevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:errorevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">ErrorEvent</span></a>.<span style="color: #004993;">ERROR</span>, cameraError <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deviceCameraApp.launch<span style="color: #000000;">&#40;</span> MediaType.IMAGE <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> imageCaptured<span style="color: #000000;">&#40;</span> event<span style="color: #000000; font-weight: bold;">:</span>MediaEvent <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Media captured...&quot;</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #6699cc; font-weight: bold;">var</span> imagePromise<span style="color: #000000; font-weight: bold;">:</span>MediaPromise = event.<span style="color: #004993;">data</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> imagePromise.isAsync <span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Asynchronous media promise.&quot;</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageLoader = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=loader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:loader.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Loader</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageLoader.<span style="color: #004993;">contentLoaderInfo</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>.<span style="color: #004993;">COMPLETE</span>, asyncImageLoaded <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageLoader.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <a href="http://www.google.com/search?q=ioerrorevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:ioerrorevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">IOErrorEvent</span></a>.<span style="color: #004993;">IO_ERROR</span>, cameraError <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageLoader.loadFilePromise<span style="color: #000000;">&#40;</span> imagePromise <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0033ff; font-weight: bold;">else</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Synchronous media promise.&quot;</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageLoader.loadFilePromise<span style="color: #000000;">&#40;</span> imagePromise <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showMedia<span style="color: #000000;">&#40;</span> imageLoader <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> captureCanceled<span style="color: #000000;">&#40;</span> event<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a> <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Media capture canceled.&quot;</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NativeApplication.nativeApplication.exit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339966; font-weight: bold;">function</span> asyncImageLoaded<span style="color: #000000;">&#40;</span> event<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a> <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Media loaded in memory.&quot;</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;showMedia<span style="color: #000000;">&#40;</span> imageLoader <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339966; font-weight: bold;">function</span> showMedia<span style="color: #000000;">&#40;</span> <span style="color: #004993;">loader</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=loader%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:loader.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Loader</span></a> <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span> <span style="color: #004993;">loader</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339966; font-weight: bold;">function</span> cameraError<span style="color: #000000;">&#40;</span> <span style="color: #004993;">error</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=errorevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:errorevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">ErrorEvent</span></a> <span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;Error:&quot;</span> <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #004993;">error</span>.<span style="color: #004993;">text</span> <span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NativeApplication.nativeApplication.exit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>One last detail to work on the smartphone, it is necessary to set the permission for the application can access the camera on Android. This is done in the xml configuration of <strong>Adobe AIR</strong>:</p>
<div class="igBar"><span id="lxml-39"><a href="#" onclick="javascript:showPlainTxt('xml-39'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-39">
<div class="xml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;android<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;manifestAdditions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #339933;">&lt;![CDATA[</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;manifest installLocation=&quot;auto&quot;&gt;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;uses-permission name=&quot;android.permission.CAMERA&quot;/&gt;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/manifest&gt;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/manifestAdditions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/android<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/05/09/accessing-the-camera-phone-with-adobe-air-for-android/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Monetize your Flash Games</title>
		<link>http://www.leonardofranca.com/index.php/2011/03/17/monetize-your-flash-games/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/03/17/monetize-your-flash-games/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 01:04:45 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=951</guid>
		<description><![CDATA[Games made with Adobe Flash has become a very interesting market, Zynga (creator of Farmville) that some time ago received a capital infusion of millions of U.S. dollars. Samuel Rivello(I had the opportunity to meet in Flash Camp Brasil) wrote &#8230; <a href="http://www.leonardofranca.com/index.php/2011/03/17/monetize-your-flash-games/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/129585295_b28533f268-e1300201214822.jpg" alt="" title="129585295_b28533f268" width="120" height="129" class="alignleft size-full wp-image-1649" />Games made with Adobe Flash has become a very interesting market, Zynga (creator of Farmville) that some time ago received a capital infusion of millions of U.S. dollars. <a href="http://rivellomultimediaconsulting.com/">Samuel Rivello</a>(I had the opportunity to meet in <a href="http://www.flashcampbrasil.com.br">Flash Camp Brasil</a>) wrote <a href="http://www.adobe.com/newsletters/edge/march2011/articles/article1/index.html?trackingid=IJQLF">an article for the Adobe Edge</a> explaining how the games industry with the Flash Platform and how developers can earn some money with this, including commenting on the company <a href="https://www.mochimedia.com/r/462d79509cd981af">Mochi Media</a>.<br />
<a href="http://www.adobe.com/newsletters/edge/march2011/articles/article1/index.html?trackingid=IJQLF">Read the article in full</a> <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
<a href="https://www.mochimedia.com/r/462d79509cd981af"><img src="http://www.mochimedia.com/static/web/images/badge_468x60.gif" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/03/17/monetize-your-flash-games/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Make your site online games done with Flash</title>
		<link>http://www.leonardofranca.com/index.php/2011/03/16/make-your-site-online-games-done-with-flash/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/03/16/make-your-site-online-games-done-with-flash/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 04:56:50 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=934</guid>
		<description><![CDATA[Online games sites made with Adobe Flash has become very popular. There are several agencys who specialize in the development of Flash games and in recent years have seen a big growth in relation to Flash games on social networks &#8230; <a href="http://www.leonardofranca.com/index.php/2011/03/16/make-your-site-online-games-done-with-flash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/129585295_b28533f268-e1300201214822.jpg" alt="" title="129585295_b28533f268" width="120" height="129" class="alignleft size-full wp-image-1649" />Online games sites made with Adobe Flash has become very popular. There are several agencys who specialize in the development of Flash games and in recent years have seen a big growth in relation to Flash games on social networks to examples of casual games that we found on Facebook and Orkut<span id="more-934"></span>.</p>
<p><div id="attachment_1664" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bytearray.org/?p=2310"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/AdobeMaxK1-3D-immersive-300x110.jpg" alt="" title="AdobeMaxK1-3D-immersive" width="300" height="110" class="size-medium wp-image-1664" /></a><p class="wp-caption-text">Introducing the Molehill 3D APIs</p></div><br />
Adobe Flash offers a huge range of possibilities for game development and more recently with the new 3D API of Flash Player (codenamed Molehill), this has only increased and much freedom developers. See the <a href="http://blog.theflashblog.com/?p=2607">list of statements with Molehill</a>.</p>
<p><div id="attachment_1667" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.adobe.com/newsletters/edge/april2010/articles/article7"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/fig04-300x214.jpg" alt="" title="fig04" width="300" height="214" class="size-medium wp-image-1667" /></a><p class="wp-caption-text">physics engine</p></div><br />
For some games it is essential to have a physical simulation (gravity, action and reaction, collisions, etc.), so-called physics engines, which are well known by staff who have already developed on other platforms for specific games. Some physics engines for Adobe Flash are: </p>
<ul>
<li><a href="http://box2dflash.sourceforge.net" target="_blank">Box2DFlash</a> — This Flash physics engine is based on the widely recognized Box2D engine from C++.</li>
<li><a href="http://code.google.com/p/glaze/" target="_blank">Glaze</a> — This one is based on the Chipmunk engine from C++. Beyond physics, this library also features scene management, line of sight, user input, scrolling, and AI.</li>
<li><a href="http://code.google.com/p/jiglibflash/" target="_blank">JigLibFlash</a></li>
</ul>
<p><div id="attachment_1672" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mandreel.com/"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/graph2-300x122.png" alt="" title="graph2" width="300" height="122" class="size-medium wp-image-1672" /></a><p class="wp-caption-text">visit www.mandreel.com</p></div><br />
You can also use some libraries or codes of games already developed and ported to Flash through the Adobe Alchemy, for those who do not know, Adobe Alchemy converts code in C / C + + to ActionScript 3.0. We have so much <a href="http://blog.theflashblog.com/?p=2593">producing porting games to the Nintendo Wii to Flash</a>.</p>
<p>I've always been a fan of games and since my first video game, a Master System, I always wanted to create games and now decided to create a website. To create a Flash game site, the company <a href="https://www.mochimedia.com/r/462d79509cd981af">Mochi</a> offers a choice between plugin for WordPress, <a href="http://gamesitescript.com/">Game Site Script</a>, <a href="https://secure.agaresmedia.com/index.php?page=arcadempro.php&#038;mochi=1">Arcadem Pro 2.8+</a>, <a href="http://www.phparcadescript.com/">phpArcadeScript</a> and <a href="http://www.avscripts.net/avarcade/">AV Arcade</a>. The company's interesting is that the company also offers games and the ability to publish and you earn some money with your own game. My game is still in production and involves Flash and Flash Media Server for something more interactive and in real time. Soon be available on <a href="https://www.mochimedia.com/r/462d79509cd981af">Mochi</a>. Meanwhile, enjoy some of the more than <a href="http://www.osfederais.com">900 free online games made in Flash</a>.<br />
<a href="https://www.mochimedia.com/r/462d79509cd981af"><img src="http://www.mochimedia.com/static/web/images/badge_468x60.gif" border="0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/03/16/make-your-site-online-games-done-with-flash/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Using accelerometer with AIR for Android</title>
		<link>http://www.leonardofranca.com/index.php/2011/03/10/using-accelerometer-with-air-for-android/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/03/10/using-accelerometer-with-air-for-android/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 03:34:24 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=917</guid>
		<description><![CDATA[A customer left me a Motorola Milestone so that it could develop an application for such. The problem was that the Milestone 1, did not come with the Android 2.2(froyo) and the update looks like it will take even(the Motorola &#8230; <a href="http://www.leonardofranca.com/index.php/2011/03/10/using-accelerometer-with-air-for-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1603" class="wp-caption alignleft" style="width: 130px"><a href="http://www.shake-them-all.net/"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/shake_android-e1299602346466.jpg" alt="" title="shake_android" width="120" height="121" class="size-full wp-image-1603" /></a><p class="wp-caption-text">Shake Them All</p></div> A customer left me a Motorola Milestone so that it could develop an application for such. The problem was that the <a href="http://www.amazon.com/gp/offer-listing/B004EST9B0/ref=as_li_tf_tl?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=am2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B004EST9B0">Milestone<img alt="Buy on Amazon NOW!" src="http://www.leonardofranca.com/wp-content/cart_go.png" title="Buy on Amazon NOW!" class="alignnone"/></a> 1, did not come with the Android 2.2(froyo) and the update looks like it will take even(the <a href="http://www.amazon.com/gp/offer-listing/B004EST9B0/ref=as_li_tf_tl?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=am2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B004EST9B0">Motorola Milestone 2<img alt="Buy on Amazon NOW!" src="http://www.leonardofranca.com/wp-content/cart_go.png" title="Buy on Amazon NOW!" class="alignnone"/></a> comes with Android 2.2). But how could not wait (and of course, with the endorsement of the client), I decided to use a room for custom install Android 2.2 in Milestone 1. I followed the steps that <a href="http://www.tekimobile.com/2010/11/instalando-o-android-2-2-froyo-no-milestone.html">article</a> and everything went well and the first thing I did was install the Adobe AIR for Android (what a surprise <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )<span id="more-917"></span>.</p>
<p>After some testing and a time familiarizing myself with the interface of Android, I decided to run the code I used for thwarting the use of <a href="http://www.leonardofranca.com/index.php/2010/10/15/using-accelerometer-with-flash-lite-4-0/">accelerometer with Flash Lite 4.0</a>.<br />
See the results without changing one line of code:<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/hzzwfwyRR9Y?hl=pt&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hzzwfwyRR9Y?hl=pt&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>And the source code:<br />
<strong><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/03/acelerometro.zip">DOWNLOAD</a></strong></p>
<blockquote><p>
The image illustrates the article is the live wallspaper <a href="http://www.shake-them-all.net">Shake Them All</a> that uses the accelerometer of the phone as simulation of gravity for the little robots android "fall" for the home screen <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p></blockquote>
<p><iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=16&#038;l=st1&#038;mode=pc-hardware&#038;search=Motorola%20Milestone%202&#038;fc1=000000&#038;lt1=_blank&#038;lc1=3366FF&#038;bg1=FFFFFF&#038;f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/03/10/using-accelerometer-with-air-for-android/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting Started with AIR for Android</title>
		<link>http://www.leonardofranca.com/index.php/2011/02/27/getting-started-with-air-for-android/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/02/27/getting-started-with-air-for-android/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 00:49:47 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Motorola]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[RIM]]></category>
		<category><![CDATA[Smartphone]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=872</guid>
		<description><![CDATA[We have for some time the possibility to create applications for Android with the Flash Platform, using Adobe AIR or Flash Player. Moreover Android is becoming increasingly more popular, various devices emerge every day more and more powerful running the &#8230; <a href="http://www.leonardofranca.com/index.php/2011/02/27/getting-started-with-air-for-android/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/air_android.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/air_android-e1296780791530.jpg" alt="" title="air_android" width="120" height="136" class="alignleft size-full wp-image-1469" /></a>We have for some time the possibility to create applications for Android with the Flash Platform, using Adobe AIR or Flash Player. Moreover Android is becoming increasingly more popular, various devices emerge every day more and more powerful running the operating system by Google and Android Market has been redesigned to facilitate the users and developers. An important detail is that<span id="more-872"></span>are not all versions of Android that support Adobe AIR and Flash Player, you need to have the smartphone Android 2.2 (Froyo) or later, and versions of AIR should be  2.5 or Flash Player 10.1.</p>
<blockquote><p>
Developing applications with the Flash Platform for Android is only possible from the Android 2.2 (Froyo) and using Adobe AIR 2.5 and Flash Player 10.1
</p></blockquote>
<p><strong>Development tools</strong></p>
<div id="attachment_1556" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/Air-for-Android3.png"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/Air-for-Android3-300x173.png" alt="AIR for Android" title="AIR for Android" width="300" height="173" class="size-medium wp-image-1556" /></a><p class="wp-caption-text">AIR for Android</p></div>
<p><strong>Adobe Flash CS5 Professional </strong> - It is possible to develop applications for Android using Adobe Flash Professional CS5, in the last version was added a profile "AIR for Android" already generating the file with the default size of 480x800. So far there are no pre-programmed components and Android is not recommended to use the existing ones in Flash.</p>
<p><strong>Adobe Flash Builder 4 (burrito)</strong> - Adobe released with Flash Builder 4 (burrito), the Flex SDK version 4.5, with components optimized for mobile devices, for those who remember, Adobe had a project of a mobile version of Flex to call <a href="http://blogs.adobe.com/labs/archives/2010/06/updated-information-regarding-hero-flex-and-mobile-previously-codenamed-slider-is-now-available-on-labs.html">"Slider"</a>, because of the rapid growth of processing the current smartphones, Adobe decided to join this project to the standard Flex SDK.</p>
<p><strong>Any text editor </strong> - You can use any text editor, saving the extension .as or to your favorite ActionScript editor.</p>
<p><strong>Runtime Adobe AIR</strong><br />
To have your application run on a device with Android, it is necessary that you install Adobe AIR runtime to then you install your application.</p>
<p><strong>Distribution</strong><br />
You can run the installer of your application by Flash Builder, Flash CS5 or by command line using the ADT. It generated an application with the extension .apk. The distribution can be made through the Android Market to become a publisher of Android Market, simply pay the $ 25 enrollment.<br />
Watch this tutorial <a href="http://blog.digitalbackcountry.com/2010/10/publishing-air-apps-to-the-android-market/">how to publish your application on Android Market</a><br />
If you create something to run in Flash Player, simply turn the browser on your smartphone, Adobe has a page so you can see some sites that use Flash Player, and have been optimized for mobile. Access <a href="http://m.flash.com">Adobe Flash Showcase for Mobile</a></p>
<p><strong>Follow some tutorials:</strong><br />
<a href="http://labs.adobe.com/technologies/flexsdk_hero/samples/">Exemplos no Adobe Labs</a><br />
<a href="http://www.adobe.com/newsletters/edge/january2011/articles/article5/index.html">Advanced Android development</a><br />
<a href="http://www.adobe.com/devnet/flex/articles/employee-directory-android-flex.html">Creating mobile apps for Android using Flash Builder "Burrito" and Flex SDK "Hero"</a><br />
<a href="http://www.adobe.com/devnet/flex/testdrivemobile/articles/mtd_5_1.html">Test Drive for Mobile: Style the application</a></p>
<p>In the next articles I'll show you how to use some features of AIR for Android <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=16&#038;l=st1&#038;mode=pc-hardware&#038;search=Apple%20iPhone%20iPad%20MacBook&#038;fc1=000000&#038;lt1=&#038;lc1=3366FF&#038;bg1=FFFFFF&#038;f=ifr" marginwidth="0" marginheight="0" width="468" height="336" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/02/27/getting-started-with-air-for-android/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Player 10.2 available</title>
		<link>http://www.leonardofranca.com/index.php/2011/02/09/flash-player-10-2-available/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/02/09/flash-player-10-2-available/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 13:53:02 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Platform]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=858</guid>
		<description><![CDATA[Yesterday Adobe released the latest version of Adobe Flash Player, the version 10.2, this version has received special attention regarding the display of video content (with the new class StageVideo), to improve performance and reduce CPU consume. Versions were released &#8230; <a href="http://www.leonardofranca.com/index.php/2011/02/09/flash-player-10-2-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://get.adobe.com/br/flashplayer/?promoid=BUIGP"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/01/flashplayer_165x165-e1296534131929.jpg" alt="" title="flashplayer_165x165" width="100" height="100" class="alignleft size-full wp-image-1333" /></a>Yesterday Adobe released the latest version of Adobe Flash Player, the version 10.2, this version has received special attention regarding the display of video content (with the new class <a href="http://www.adobe.com/devnet/flashplayer/stagevideo.html">StageVideo</a>), to improve performance and reduce CPU consume. Versions were released for <a href="http://get.adobe.com/br/flashplayer">Mac, Windows and Linux</a>.<br />
Among other news we have the option of using multiple fullscreen on screen and also the ability to use custom cursors.<br />
Upgrade your Flash Player and track the rest of the news directly from <a href="http://blogs.adobe.com/flashplayer/2011/02/flash-player-10-2-launch.html">blog of the producers of Flash Player</a>.<br />
And who is a developer, follow the link of the versions Flash Player 10.2 debugger.<br />
<a href="http://www.adobe.com/support/flashplayer/downloads.html">http://www.adobe.com/support/flashplayer/downloads.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/02/09/flash-player-10-2-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Flash with Microsoft Kinect</title>
		<link>http://www.leonardofranca.com/index.php/2011/01/12/adobe-flash-with-microsoft-kinect/</link>
		<comments>http://www.leonardofranca.com/index.php/2011/01/12/adobe-flash-with-microsoft-kinect/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 04:48:52 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=854</guid>
		<description><![CDATA[This video produced by the agency Blitz demonstrates the use of Kinect far beyond the XBox. It's awesome and opens the possibility for interactive applications where only the imagination is the limit. Follow the video demonstration Flash Kinect Demo from &#8230; <a href="http://www.leonardofranca.com/index.php/2011/01/12/adobe-flash-with-microsoft-kinect/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This video produced by the agency Blitz demonstrates the use of Kinect far beyond the XBox. It's awesome and opens the possibility for interactive applications where only the imagination is the limit. Follow the video demonstration<br />
<iframe src="http://player.vimeo.com/video/18645886" width="400" height="225" frameborder="0"></iframe></p>
<p><a href="http://vimeo.com/18645886">Flash Kinect Demo</a> from <a href="http://vimeo.com/blitzagency">BLITZ Agency</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2011/01/12/adobe-flash-with-microsoft-kinect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Flash with new 3D APIs – Molehill</title>
		<link>http://www.leonardofranca.com/index.php/2010/11/02/adobe-flash-with-new-3d-apis-%e2%80%93-molehill/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/11/02/adobe-flash-with-new-3d-apis-%e2%80%93-molehill/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 04:31:48 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=850</guid>
		<description><![CDATA[It was presented at Adobe MAX 2010 occurred in late October a preview of Adobe Flash Player 11 with new APIs for working with 3D – codenamed Molehill – the result is impressive and we can also see the support &#8230; <a href="http://www.leonardofranca.com/index.php/2010/11/02/adobe-flash-with-new-3d-apis-%e2%80%93-molehill/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It was presented at Adobe MAX 2010 occurred in late October a preview of Adobe Flash Player 11 with new APIs for working with 3D – codenamed Molehill – the result is impressive and we can also see the support of new Flash Player to controls of the consoles, in video is used a steering wheel X-Box<span id="more-850"></span>.<br />
<object width="425" height="256"><param name="movie" value="http://images.tv.adobe.com/swf/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="FlashVars" value="fileID=8184&#038;context=64&#038;embeded=true&#038;environment=production"></param><embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=8184&#038;context=64&#038;embeded=true&#038;environment=production" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="256"></embed></object><br />
Faq about Molehill<br />
<a href="http://labs.adobe.com/technologies/flash/molehill/">http://labs.adobe.com/technologies/flash/molehill/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/11/02/adobe-flash-with-new-3d-apis-%e2%80%93-molehill/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building Applications with Web RunTime(WRT) and Flash Lite for Nokia devices</title>
		<link>http://www.leonardofranca.com/index.php/2010/10/28/building-applications-with-web-runtimewrt-and-flash-lite-for-nokia-devices/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/10/28/building-applications-with-web-runtimewrt-and-flash-lite-for-nokia-devices/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 04:17:07 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=848</guid>
		<description><![CDATA[Web RunTimeis one of the possibilities that Nokia provides for creating applications for mobile devices. If you're a web developer, you do not need much of anything else to start developing for Nokia devices using the WRT. It allows you &#8230; <a href="http://www.leonardofranca.com/index.php/2010/10/28/building-applications-with-web-runtimewrt-and-flash-lite-for-nokia-devices/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/nokia_web_sdk.jpg" alt="" title="nokia_web_sdk" width="129" height="161" class="alignleft size-full wp-image-1370" /><a href="http://www.forum.nokia.com/Develop/Web/">Web RunTime</a>is one of the possibilities that Nokia provides for creating applications for mobile devices. If you're a web developer, you do not need much of anything else to start developing for Nokia devices using the WRT. It allows you to create widgets for S60 platform is a browser extension allowing you to Webkit browser instances to run as if they were separate applications. And you can still create rich applications using Flash<span id="more-848"></span>.<br />
<strong>Development Tools.</strong><br />
Nokia offers some tools to facilitate development to WRT:</p>
<ul>
<li><a href="http://tools.nokia.com/wrt/notes/1.0/release.html">Nokia Web Developer Environment Standalone.</a></li>
<li><a href="http://www.forum.nokia.com/info/sw.nokia.com/id/00d62bd8-4214-4c86-b608-5f11b94dad54/Nokia_WRT_Plug_in_for_Aptana_Studio.html">Plugin for Aptana Studio.</a></li>
<li><a href="http://www.forum.nokia.com/info/sw.nokia.com/id/090b75b2-61cd-47da-b13f-2b2337bad99b/Nokia_WRT_Extension_for_Dreamweaver.html">Extension for Adobe Dreamweaver.</a></li>
<li><a href="http://www.forum.nokia.com/info/sw.nokia.com/id/f1875dc1-b3c1-4261-bc58-25c2702b200a/Nokia_WRT_Plug_in_for_Visual_Studio.html">Plugin for Microsoft Visual Studio.</a></li>
</ul>
<p>It also provides UI Framework and Library as:</p>
<ul>
<li><a href="http://wiki.forum.nokia.com/index.php/Guarana_UI:_a_jQuery-Based_UI_Library_for_Nokia_WRT">Guarana WRT UI library</a> - A library based on JQuery for Nokia WRT by staff on <a href="http://www.indt.org.br/en.html">INdT</a>(Instituto Nokia de Tecnologia) based in Manaus - Brazil.</li>
<li><a href="http://www.forum.nokia.com/Develop/Web/Mobile_web_browsing/Web_templates/">Nokia Mobile Web Templates</a> - A set of templates optimized for mobile and to customize how you want.</li>
</ul>
<p>And there are some API's to work with the resources of mobile devices.</p>
<ul>
<li><a href="http://www.forum.nokia.com/Library/Tools_and_downloads/Other/Nokia_Platform_Services/">Platform Service 2.0</a> - An API in ActionScript 2.0 and JavaScript to access resources of mobile devices such as accelerometers, etc. geolocation.</li>
<li><a href="http://www.forum.nokia.com/Library/Tools_and_downloads/Other/APIBridge/">API Bridge</a> - is a component for Nokia devices with Symbian, which allows WRT widgets content, Adobe Flash Lite and Java applications to access device features through a plug-in architecture. Developers can extend the component APIBridge with their own plug-ins.</li>
</ul>
<p>How does the widgets made with Web RunTime? widgets that are files with extension .wgz which is nothing but a compressed file with the files from your site. Files that are can not miss:</p>
<ul>
<li>Info.plist - file responsible for the information of your widget as version, homepage, name etc.</li>
<li>index.html - in fact, can be any name that is set in the Info.plist as MainHTML.</li>
</ul>
<p><strong>Create widgets to WRT and Flash Lite</strong><br />
How do you use html to create your widgets with WRT, nothing prevents to use Adobe Flash in the same way as you use normally through the html. Let's see an example using JavaScript to communicate with Flash through the ExternalInterface class. In this example I will use the Nokia Web Developer Environment Standalone.</p>
<ul>
<li>Create a new project of type web apps Symbian-> Basic web app project. Give a name for your project and click next. Basic files are generated for your project.</li>
</ul>
<p>We will choose the User option to play two videos. We start with the html containing the video options</p>
<div class="igBar"><span id="lxml-48"><a href="#" onclick="javascript:showPlainTxt('xml-48'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-48">
<div class="xml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;select&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;select</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;select&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;select&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;option</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;sample&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sample.flv<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;option</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;sneeze&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>sneeze.flv<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Tocar&quot;</span> <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">&quot;javascript:playVideo();&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
And the html that loads the swf responsible for playing the video:</p>
<div class="igBar"><span id="lxml-49"><a href="#" onclick="javascript:showPlainTxt('xml-49'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-49">
<div class="xml" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;playerFlashLite&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;playerFlashLite&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;360&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;360&quot;</span> <span style="color: #000066;">data</span>=<span style="color: #ff0000;">&quot;PlayerFlashLite.swf&quot;</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">allowscriptaccess</span>=<span style="color: #ff0000;">'always'</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">allowFullScreen</span>=<span style="color: #ff0000;">'true'</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">usefullscreen</span>=<span style="color: #ff0000;">'true'</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">type</span>=<span style="color: #ff0000;">'application/x-shockwave-flash'</span></span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">loop</span>=<span style="color: #ff0000;">'false'</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Edit the file basic.js to add the method that will send the video to the swf to be played.</p>
<div class="igBar"><span id="ljavascript-50"><a href="#" onclick="javascript:showPlainTxt('javascript-50'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-50">
<div class="javascript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> playVideo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;playerFlashLite&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">playVideo</span><span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;select&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
In Flash, create a file type of Flash Lite 3.0 or 3.1. In the library panel, click on the "new video". Give the name of instance "vd." In type let selecting "Video (ActionScript-controlled) and add the stage. Add the following code to run Flash video streamed from Flash Media Server:</p>
<div class="igBar"><span id="lactionscript-51"><a href="#" onclick="javascript:showPlainTxt('actionscript-51'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-51">
<div class="actionscript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #66cc66;">*</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; ExternalInterface.<span style="color: #006600;">addCallback</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;playVideo&quot;</span>,<span style="color: #0066CC;">this</span>,playVideo<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;init..&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> nc = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; nc.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;rtmp://localhost/videoondemand&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; nc.<span style="color: #0066CC;">onStatus</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>info<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Level: &quot;</span> + info.<span style="color: #0066CC;">level</span> + <span style="color: #ff0000;">&quot; Code: &quot;</span> + info.<span style="color: #006600;">code</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">function</span> playVideo<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">video</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetStream</span><span style="color: #66cc66;">&#40;</span>nc<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vd.<span style="color: #0066CC;">attachVideo</span><span style="color: #66cc66;">&#40;</span>ns<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">video</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txt.<span style="color: #0066CC;">text</span> = <span style="color: #0066CC;">video</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ns.<span style="color: #0066CC;">onStatus</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>info<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Level: &quot;</span> + info.<span style="color: #0066CC;">level</span> + <span style="color: #ff0000;">&quot; Code: &quot;</span> + info.<span style="color: #006600;">code</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
We use static class ExternalInterface that our method within Flash can be called from JavaScript.. Running the emulator from Nokia Web Developer, we have something like this:</p>
<p><div id="attachment_1371" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/emulador_nokia_web_developer.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/emulador_nokia_web_developer-300x214.jpg" alt="" title="emulador_nokia_web_developer" width="300" height="214" class="size-medium wp-image-1371" /></a><p class="wp-caption-text">Emulador Nokia Web Developer</p></div><br />
Emulador Nokia Web Developer<br />
To generate the file .wgz, just click right on the project and "Package Web app" and your application is ready to run on the phone. Tested on Nokia 5230 <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>To learn more:</strong><br />
<a href="http://www.forum.nokia.com/Develop/Web/Tools/">http://www.forum.nokia.com/Develop/Web/Tools/</a><br />
<a href="http://wiki.forum.nokia.com/index.php/Category:Web_Runtime_%28WRT%29">http://wiki.forum.nokia.com/index.php/Category:Web_Runtime_%28WRT%29</a><br />
<a href="http://jquerymobile.com/">JQuery Mobile</a><br />
<a href="http://help.adobe.com/en_US/flashlite/dev/4/index.html">Adobe Flash Lite</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/10/28/building-applications-with-web-runtimewrt-and-flash-lite-for-nokia-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using accelerometer with Flash Lite 4.0</title>
		<link>http://www.leonardofranca.com/index.php/2010/10/15/using-accelerometer-with-flash-lite-4-0/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/10/15/using-accelerometer-with-flash-lite-4-0/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 03:17:49 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=840</guid>
		<description><![CDATA[We had the launch of the Nokia N8, officially the first device to support Flash Lite 4.0. Besides the Nokia N8, we also have a Nokia C7 and Nokia E7, all running the Symbian^3 and Adobe Flash Lite 4.0 is &#8230; <a href="http://www.leonardofranca.com/index.php/2010/10/15/using-accelerometer-with-flash-lite-4-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/device_central_acelerometro.jpg" alt="" title="device_central_acelerometro" width="120" height="125" class="alignleft size-full wp-image-1419" />We had the launch of the Nokia N8, officially the first device to support Flash Lite 4.0. Besides the Nokia N8, we also have a Nokia C7 and Nokia E7, all running the Symbian^3 and Adobe Flash Lite 4.0 is already installed. This implies the possibility of developing applications for Symbian^3 using ActionScript 3.0 running on the browser or standalone<span id="more-840"></span>.<br />
We must look to the fact that Flash Lite 4.0 is not the Flash Player 10.1, they have some significant differences:</p>
<ul>
<li>
Flash Lite supports some features partially.</li>
<li>Flash Lite adds some features to work specifically with mobile devices.</li>
</ul>
<p>Flash Lite 4.0 is based on Flash Player 10, having features that were introduced in Flash Player 9 and 10. Among the resources available are:</p>
<ul>
<li>Multi-touch support</li>
<li>Flash Player 10 text engine</li>
<li>Using inline text input</li>
<li>RTMP data channel</li>
<li>RTMPE</li>
<li>RTMPT and RTMPTE</li>
<li>Multi bit-rate streaming</li>
<li>Geolocation</li>
<li>Accelerometer</li>
<li>SharedObject Remote(yessss! <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</li>
</ul>
<p>Also see <a href="http://help.adobe.com/en_US/flashlite/dev/4/WS58a04a822e3e50106a060cf0122f627efb3-7fba.html">partially supported classes</a> and the <a href="http://help.adobe.com/en_US/flashlite/dev/4/WS58a04a822e3e50106a060cf0122f627efb3-7f8c.html">Unsupported classes</a>.<br />
Come to our first example using the new capabilities of Flash Lite 4.0, in which case the accelerometer.</p>
<ul>
<li>Create a file of type Flash Lite 4.0 in Flash CS5 or in Adobe Device Central CS5.</li>
<li>Add three dynamic text fields in them will show the coordinates of x, y and z.</li>
</ul>
<p>We begin our coding, we have a method to create a ball that will suffer the effects of the accelerometer</p>
<div class="igBar"><span id="lactionscript3-58"><a href="#" onclick="javascript:showPlainTxt('actionscript3-58'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-58">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> createBall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Sprite</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">graphics</span>.<span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xFF0000<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">graphics</span>.<span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;color:#800000;">0</span>, <span style="color: #000000; font-weight:bold;color:#800000;">0</span>, RADIUS<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">cacheAsBitmap</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">x</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">y</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>ball<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Then check if the device has an accelerometer to add the listeners that handle the sensor data and update the positions of the ball.</p>
<div class="igBar"><span id="lactionscript3-59"><a href="#" onclick="javascript:showPlainTxt('actionscript3-59'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-59">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> AccelerometerTest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">stage</span>.<span style="color: #004993;">scaleMode</span> = <a href="http://www.google.com/search?q=stagescalemode%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:stagescalemode.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">StageScaleMode</span></a>.<span style="color: #004993;">NO_SCALE</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">stage</span>.<span style="color: #004993;">align</span> = <a href="http://www.google.com/search?q=stagealign%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:stagealign.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">StageAlign</span></a>.<span style="color: #004993;">TOP_LEFT</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; createBall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>Accelerometer.isSupported<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accelerometer = <span style="color: #0033ff; font-weight: bold;">new</span> Accelerometer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accelerometer.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>AccelerometerEvent.UPDATE, accUpdateHandler<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #004993;">stage</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a>.<span style="color: #004993;">ENTER_FRAME</span>, enterFrameHandler<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
And the rest of the code.</p>
<div class="igBar"><span id="lactionscript3-60"><a href="#" onclick="javascript:showPlainTxt('actionscript3-60'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-60">
<div class="actionscript3" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339966; font-weight: bold;">function</span> enterFrameHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=event%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:event.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Event</span></a><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.<span style="color: #004993;">stopPropagation</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; moveBall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #339966; font-weight: bold;">function</span> moveBall<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> newX<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Number</span></a> = ball.<span style="color: #004993;">x</span> <span style="color: #000000; font-weight: bold;">+</span> xSpeed;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> newY<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=number%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:number.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Number</span></a> = ball.<span style="color: #004993;">y</span> <span style="color: #000000; font-weight: bold;">+</span> ySpeed;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>newX <span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #000000; font-weight:bold;color:#800000;">20</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">x</span> = RADIUS;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xSpeed = <span style="color: #000000; font-weight:bold;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>newX<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">-</span> RADIUS<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">x</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageWidth</span> <span style="color: #000000; font-weight: bold;">-</span> RADIUS;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xSpeed = <span style="color: #000000; font-weight:bold;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">x</span> <span style="color: #000000; font-weight: bold;">+</span>= &nbsp;xSpeed;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>newY <span style="color: #000000; font-weight: bold;">&lt;</span>RADIUS<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">y</span> = RADIUS;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ySpeed = <span style="color: #000000; font-weight:bold;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>newY<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">-</span> RADIUS<span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">y</span> = <span style="color: #004993;">stage</span>.<span style="color: #004993;">stageHeight</span> <span style="color: #000000; font-weight: bold;">-</span> RADIUS;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ySpeed = <span style="color: #000000; font-weight:bold;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">else</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ball.<span style="color: #004993;">y</span> <span style="color: #000000; font-weight: bold;">+</span>= &nbsp;ySpeed;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #339966; font-weight: bold;">function</span> accUpdateHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>AccelerometerEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xSpeed <span style="color: #000000; font-weight: bold;">+</span>= &nbsp;event.accelerationX <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ySpeed <span style="color: #000000; font-weight: bold;">-</span>= &nbsp;event.accelerationY <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight:bold;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtX.<span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">String</span></a><span style="color: #000000;">&#40;</span>event.accelerationX<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtY.<span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">String</span></a><span style="color: #000000;">&#40;</span>event.accelerationY<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; txtZ.<span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=string%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:string.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">String</span></a><span style="color: #000000;">&#40;</span>event.accelerationZ<span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Now just ask to test the emulator in Adobe Device Central CS5, we have something like this:<br />
<div id="attachment_1421" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/10/device_central_cs5_acellerometer.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/10/device_central_cs5_acellerometer-300x213.jpg" alt="" title="device_central_cs5_acellerometer" width="300" height="213" class="size-medium wp-image-1421" /></a><p class="wp-caption-text">Adobe Device Central CS5</p></div></p>
<p><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/10/acelerometro_flashlite40.zip">DOWNLOAD SOURCE</a></strong><br />
To learn more:<br />
<a href="http://help.adobe.com/en_US/flashlite/dev/4/index.html">http://help.adobe.com/en_US/flashlite/dev/4/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/10/15/using-accelerometer-with-flash-lite-4-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Geolocation with Flash Lite and Nokia Platform Services</title>
		<link>http://www.leonardofranca.com/index.php/2010/10/06/using-geolocation-with-flash-lite-and-nokia-platform-services/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/10/06/using-geolocation-with-flash-lite-and-nokia-platform-services/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 02:48:18 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=834</guid>
		<description><![CDATA[The use of geolocation capabilities is no longer news today, we have devices with integrated GPS in cars, smartphones, notebooks etc. Flash Lite 4.0, Flash Player 10.1 (only mobile) and Adobe AIR 2.5 (also just mobile) have native support for &#8230; <a href="http://www.leonardofranca.com/index.php/2010/10/06/using-geolocation-with-flash-lite-and-nokia-platform-services/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/geo_location_apps-e1296702245624.jpg" alt="" title="geo_location_apps" width="120" height="112" class="alignleft size-full wp-image-1431" />The use of geolocation capabilities is no longer news today, we have devices with integrated GPS in cars, smartphones, notebooks etc. Flash Lite 4.0, Flash Player 10.1 (only mobile) and Adobe AIR 2.5 (also just mobile) have native support for geolocation. Flash Lite 3 can access resources geolocation smartphone using Nokia Platform Services<span id="more-834"></span>.<br />
Nokia has created a <a href="http://www.forum.nokia.com/Develop/Other_Technologies/Flash_lite/">library </a>especially for working with Flash Lite feature that gives access to natively are not possible as access to the accelerometer, GPS, calendar, contacts etc.</p>
<blockquote><p>
Nokia has created a <a href="http://www.forum.nokia.com/Develop/Other_Technologies/Flash_lite/">library </a>especially for working with Flash Lite feature that gives access to natively are not possible as access to the accelerometer, GPS, calendar, contacts etc.
</p></blockquote>
<p>I'll show a simple example of the use of geolocation with Flash Lite 3.0 and Nokia Platform Services.<br />
Download the <a href="http://library.forum.nokia.com/topic/Flash_Lite_Developers_Library/ActionScript_library_for_S60_Platform_Services.zip">library </a>Nokia and then save the directory under your operating system:</p>
<blockquote><p>
Nokia Platform Services only works on devices running Symbian S60 5th.
</p></blockquote>
<ul>
<li>Mac - Copie para /Users/<user name>/Library/Application/Support/Adobe/Flash CS5/en/Configuration/Classes/</li>
<li>Windows Vista - Extraia para /Users/<user name>/AppData/Local/Adobe/Flash CS4/en/Configuration/Classes.</li>
<li>Windows XP - Extraia para /<user name>/Local Settings/Application Data/Adobe/Flash CS5/en/Configuration/Classes/</li>
</ul>
<p>We will start our first example:</p>
<ul>
<li>Create a file of type ActionScript 2.0 and ask them to compile for Flash Lite 3.0 or 3.1. Or you can create directly from Adobe Device Central CS5.</li>
<li>Create a MovieClip and the instance name "mcScreen" and leave the stage.</li>
</ul>
<p>We will now part of the encoding. We start by disabling the virtual keyboard (in my case to using a Nokia 5230) and setting the program to open on fullscreen.</p>
<div class="igBar"><span id="lactionscript-69"><a href="#" onclick="javascript:showPlainTxt('actionscript-69'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-69">
<div class="actionscript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">fscommand2<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;DisableKeypadCompatibilityMode&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; fscommand2<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;FullScreen&quot;</span>, <span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Add the class to import services from Nokia and declare the needed variables.</p>
<div class="igBar"><span id="lactionscript-70"><a href="#" onclick="javascript:showPlainTxt('actionscript-70'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-70">
<div class="actionscript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">nokia</span>.<span style="color: #006600;">lib</span>.<span style="color: #006600;">Service</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//api google maps</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> API_KEY:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;YOUR_API_KEY&quot;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> latitude:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> longitude:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> myLocation:Service;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> mapLoader:<span style="color: #0066CC;">MovieClipLoader</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
I will use the Google Maps API to use the latitude and longitude to display the location on the map. Do I need to purchase a <a href="http://code.google.com/intl/pt-BR/apis/maps/index.html">key Google website</a>.<br />
Instantiate the service and so we set the number of geolocation information from your smartphone.</p>
<div class="igBar"><span id="lactionscript-71"><a href="#" onclick="javascript:showPlainTxt('actionscript-71'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-71">
<div class="actionscript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">var</span> myLocation = <span style="color: #000000; font-weight: bold;">new</span> Service<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Service.Location&quot;</span>, <span style="color: #ff0000;">&quot;ILocation&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> inParams = <span style="color: #66cc66;">&#123;</span>LocationInformationClass:<span style="color: #ff0000;">&quot;GenericLocationInfo&quot;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> outParams = myLocation.<span style="color: #006600;">GetLocation</span><span style="color: #66cc66;">&#40;</span>inParams<span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Just get the latitude and longitude have to load the map. One detail is that Google has no API for working with ActionScript 2.0, ActionScript 3.0 only. So what I will do is that Flash load an image from Google Maps via HTTP. You can get details by clicking <a href="http://code.google.com/intl/pt-BR/apis/maps/documentation/staticmaps">here</a>.</p>
<div class="igBar"><span id="lactionscript-72"><a href="#" onclick="javascript:showPlainTxt('actionscript-72'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-72">
<div class="actionscript" style="font-family:monospace;">
<ol>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>outParams.<span style="color: #006600;">ErrorCode</span> == <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">var</span> outList = outParams.<span style="color: #006600;">ReturnValue</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">txtLatitude.<span style="color: #0066CC;">text</span> = outList.<span style="color: #006600;">Latitude</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">txtLongitude.<span style="color: #0066CC;">text</span> = outList.<span style="color: #006600;">Longitude</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">latitude = outList.<span style="color: #006600;">Latitude</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">longitude = outList.<span style="color: #006600;">Longitude</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mcScreen.<span style="color: #0066CC;">createEmptyMovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mcMap&quot;</span>, mcScreen.<span style="color: #0066CC;">getNextHighestDepth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mapLoader = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">MovieClipLoader</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mapURL = <span style="color: #ff0000;">&quot;http://maps.google.com/maps/api/staticmap?center=&quot;</span>+latitude+<span style="color: #ff0000;">&quot;,&quot;</span>+longitude+<span style="color: #ff0000;">&quot;&amp;size=360x640&amp;markers=color:red|&quot;</span>+latitude+<span style="color: #ff0000;">&quot;,&quot;</span>+longitude+<span style="color: #ff0000;">&quot;&amp;key=&quot;</span>+API_KEY+<span style="color: #ff0000;">&quot;&amp;format=jpg-baseline&amp;zoom=10&amp;sensor=true&quot;</span>;</div>
</li>
<li style="font-weight: normal; vertical-align:top;color:#3A6A8B;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mapLoader.<span style="color: #0066CC;">loadClip</span><span style="color: #66cc66;">&#40;</span>mapURL, mcScreen.<span style="color: #006600;">mcMap</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold; vertical-align:top;color:#26536A;">
<div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/10/geolocalizacao_flashlite3_360_640.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>To learn more:</strong><br />
<a href="http://www.forum.nokia.com/Develop/Other_Technologies/Flash_lite/">http://www.forum.nokia.com/Develop/Other_Technologies/Flash_lite/</a><br />
<a href="http://library.forum.nokia.com/index.jsp?topic=/Flash_Lite_Developers_Library/GUID-46EABDC1-37CB-412A-ACAD-1A1A9466BB68.html">http://library.forum.nokia.com/index.jsp?topic=/Flash_Lite_Developers_Library/GUID-46EABDC1-37CB-412A-ACAD-1A1A9466BB68.html</a></p>
<p><strong>Recommended Books:</strong></p>
<table>
<tr>
<td>
<iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1430219041&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td>
<td>
<iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=0470547480&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td>
<td>
<iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1590595580&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td>
<td>
<iframe src="http://rcm.amazon.com/e/cm?t=leonafranc-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=B003BNZD5K&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td>
</tr>
</table>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_0fd01e81-20f8-4aee-a190-bf33b617fc18"  WIDTH="500px" HEIGHT="175px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fleonafranc-20%2F8010%2F0fd01e81-20f8-4aee-a190-bf33b617fc18&#038;Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fleonafranc-20%2F8010%2F0fd01e81-20f8-4aee-a190-bf33b617fc18&#038;Operation=GetDisplayTemplate" id="Player_0fd01e81-20f8-4aee-a190-bf33b617fc18" quality="high" bgcolor="#ffffff" name="Player_0fd01e81-20f8-4aee-a190-bf33b617fc18" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="175px" width="500px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fleonafranc-20%2F8010%2F0fd01e81-20f8-4aee-a190-bf33b617fc18&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/10/06/using-geolocation-with-flash-lite-and-nokia-platform-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codenames of software from Adobe (and formerly Macromedia)</title>
		<link>http://www.leonardofranca.com/index.php/2010/10/04/codenames-of-software-from-adobe-and-formerly-macromedia/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/10/04/codenames-of-software-from-adobe-and-formerly-macromedia/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 02:26:46 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Adobe Media Player]]></category>
		<category><![CDATA[Adobe TV]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Flash Media Server]]></category>
		<category><![CDATA[Flash Remoting]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=829</guid>
		<description><![CDATA[Here some codenames used by Adobe (and former Macromedia) to develop its software. Constantly updated list, who know a code name that is not listed, you can leave a comment for update Product Codename Adobe AIR 2.5 ? Adobe AIR &#8230; <a href="http://www.leonardofranca.com/index.php/2010/10/04/codenames-of-software-from-adobe-and-formerly-macromedia/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here some codenames used by Adobe (and former Macromedia) to develop its software. Constantly updated list, who know a code name that is not listed, you can leave a comment for update <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-829"></span></p>
<table bgcolor="#000000" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<th><font color="#ffffff">Product</font></th>
<th><font color="#ffffff">Codename</font></th>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Adobe AIR 2.5</strong></td>
<td bgcolor="#ffffff">?</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Adobe AIR 2.0</strong></td>
<td bgcolor="#ffffff">Athena</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Adobe AIR 1.5</strong></td>
<td bgcolor="#ffffff">Cosmo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Adobe AIR 1.0</strong></td>
<td bgcolor="#ffffff">Apollo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Adobe Media Player</strong></td>
<td bgcolor="#ffffff">Philo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>VoIP for Flash</strong></td>
<td bgcolor="#ffffff">Pacifica</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player native 64-bit support</strong></td>
<td bgcolor="#ffffff">Square</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 10</strong></td>
<td bgcolor="#ffffff">Astro</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 9.0.60</strong></td>
<td bgcolor="#ffffff">Moviestar</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 8.5</strong></td>
<td bgcolor="#ffffff">Zaphod</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 7</strong></td>
<td bgcolor="#ffffff">Mojo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 6</strong></td>
<td bgcolor="#ffffff">Exorcist</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash CS5</strong></td>
<td bgcolor="#ffffff">Viper</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash 10 CS4</strong></td>
<td bgcolor="#ffffff">Diesel</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash 9 CS3</strong></td>
<td bgcolor="#ffffff">Bolero(Dot Release) &gt; Blaze</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash 8</strong></td>
<td bgcolor="#ffffff">8Ball</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Player 8</strong></td>
<td bgcolor="#ffffff">Maelstrom</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash MX 2004 7.2</strong></td>
<td bgcolor="#ffffff">Ellipsis</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash MX 2004</strong></td>
<td bgcolor="#ffffff">Matador</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash MX Professional 2004</strong></td>
<td bgcolor="#ffffff">Toreador</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash MX</strong></td>
<td bgcolor="#ffffff">Fang</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash 5</strong></td>
<td bgcolor="#ffffff">Gromit</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Remoting</strong></td>
<td bgcolor="#ffffff">Salsa</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Media Server 2.0.1</strong></td>
<td bgcolor="#ffffff">Dynamo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Media Server 2.0</strong></td>
<td bgcolor="#ffffff">Edison</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Communication Server 1.5</strong></td>
<td bgcolor="#ffffff">Kaiwa</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Communication Server 1.0</strong></td>
<td bgcolor="#ffffff">TinCan</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Lite 3.0 Authoring</strong></td>
<td bgcolor="#ffffff">Rob Roy</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Lite 2.0</strong></td>
<td bgcolor="#ffffff">Deuce</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Lite 1.1</strong></td>
<td bgcolor="#ffffff">Sahti</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Generator 2</strong></td>
<td bgcolor="#ffffff">Tsunami</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Captivate</strong></td>
<td bgcolor="#ffffff">Northshore</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Central 1.5</strong></td>
<td bgcolor="#ffffff">Mercury &gt; Gemini</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flash Catalyst</strong></td>
<td bgcolor="#ffffff">Thermo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 4.5</strong></td>
<td bgcolor="#ffffff">Hero</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 4.0</strong></td>
<td bgcolor="#ffffff">Gumbo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 3.0</strong></td>
<td bgcolor="#ffffff">Moxie</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>FDS 2.x/3.0 ?</strong></td>
<td bgcolor="#ffffff">Borneo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex Builder 4</strong></td>
<td bgcolor="#ffffff">Burrito</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex Builder 2</strong></td>
<td bgcolor="#ffffff">Zorn</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 2.0</strong></td>
<td bgcolor="#ffffff">Mistral</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 1.5 for .NET</strong></td>
<td bgcolor="#ffffff">Wondertwin</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex 1.0</strong></td>
<td bgcolor="#ffffff">Illiad &gt; Odyssey &gt; RedHouse &gt; Royale</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Flex Builder 1.0</strong></td>
<td bgcolor="#ffffff">Brady</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion Builder 2 </strong></td>
<td bgcolor="#ffffff">Storm</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion Builder 1  </strong></td>
<td bgcolor="#ffffff">Bolt</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion 11 </strong></td>
<td bgcolor="#ffffff">Thunder</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion 10 </strong></td>
<td bgcolor="#ffffff">Link</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion 9 </strong></td>
<td bgcolor="#ffffff">Centaur</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion 8 (64Bit)</strong></td>
<td bgcolor="#ffffff">Gemini</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion 8</strong></td>
<td bgcolor="#ffffff">Scorpio</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion MX 7.5 (?)</strong></td>
<td bgcolor="#ffffff">Mystic</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion MX 7 Updater (7.0.1)</strong></td>
<td bgcolor="#ffffff">Merrimack</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion MX 7</strong></td>
<td bgcolor="#ffffff">Elvis &gt; Blackstone</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion MX 6.1</strong></td>
<td bgcolor="#ffffff">RedSky</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>ColdFusion MX 6</strong></td>
<td bgcolor="#ffffff">Neo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>JRun 5</strong></td>
<td bgcolor="#ffffff">Cheetah</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>JRun 4</strong></td>
<td bgcolor="#ffffff">Nozomi</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director MX 2004</strong></td>
<td bgcolor="#ffffff">Woody</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director MX</strong></td>
<td bgcolor="#ffffff">Foster</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director 8.5</strong></td>
<td bgcolor="#ffffff">Tron</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director 8</strong></td>
<td bgcolor="#ffffff">Woo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director 6</strong></td>
<td bgcolor="#ffffff">Hopper</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Director 5</strong></td>
<td bgcolor="#ffffff">Spike</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Multiuser Server</strong></td>
<td bgcolor="#ffffff">Mars</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Contribute 2</strong></td>
<td bgcolor="#ffffff">Samwise</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Contribute 1</strong></td>
<td bgcolor="#ffffff">Dashboard</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Dreamweaver 10 CS4</strong></td>
<td bgcolor="#ffffff">Stiletto</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Dreamweaver 9 CS3</strong></td>
<td bgcolor="#ffffff">Hanzo</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Dreamweaver 8</strong></td>
<td bgcolor="#ffffff">Coltrane</td>
</tr>
<tr>
<td bgcolor="#ffffff"><strong>Fireworks 8</strong></td>
<td bgcolor="#ffffff">Avedon</td>
</tr>
</tbody>
</table>
<p>Source:<br />
<a href="http://luar.com.hk/blog/?p=472">http://luar.com.hk/blog/?p=472</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/10/04/codenames-of-software-from-adobe-and-formerly-macromedia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player on PlayStation 3</title>
		<link>http://www.leonardofranca.com/index.php/2010/09/28/flash-player-on-playstation-3/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/09/28/flash-player-on-playstation-3/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 02:15:30 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Platform]]></category>
		<category><![CDATA[Nintendo Wii]]></category>
		<category><![CDATA[PlayStation 3]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=827</guid>
		<description><![CDATA[After I created the article about Flash and Nintendo Wii, I sent some friends to test them in their equipment. Among them, my brother had the curiosity to test also on your PlayStation 3. Well, I already knew that the &#8230; <a href="http://www.leonardofranca.com/index.php/2010/09/28/flash-player-on-playstation-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://us.playstation.com/ps3/"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2011/02/playstation-3-e1296704727389.jpg" alt="" title="playstation-3" width="120" height="120" class="alignleft size-full wp-image-1444" /></a>After I created the article about <a href="http://www.leonardofranca.com/index.php/2010/09/02/developing-games-for-the-nintendo-wii-with-adobe-flash">Flash and Nintendo Wii</a>, I sent some friends to test them in their equipment. Among them, <a href="http://devrafael.blogspot.com">my brother</a> had the curiosity to test also on your PlayStation 3.<br />
Well, I already knew that the PlayStation 3 had support for Flash Player, and remained to the version that the application can be used<span id="more-827"></span>. In the case of Flash Player, which he saw so far supports the version 9 (PS3 9.0.159.0) and will run through the browser (Mozilla-based – the NetFront) as well as the Nintendo Wii (based on Opera).<br />
Get yourself an example created for the Nintendo Wii running on PlayStation 3<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/IHhbYGqqOUM?fs=1&amp;hl=pt_BR"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/IHhbYGqqOUM?fs=1&amp;hl=pt_BR" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br />
I’m preparing some more specific tests for the PlayStation 3, if runs ActionScript 3.0, use the buttons and the new PlayStation Moves that will come with a webcam, that is, interesting possibilities with the use of augmented reality with the Flash Platform in the PlayStation 3  <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/09/28/flash-player-on-playstation-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

