<?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 Lite</title>
	<atom:link href="http://www.leonardofranca.com/index.php/category/flash-lite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonardofranca.com</link>
	<description>Flash Platform, Adobe AIR, ActionScript, Flash, RIA, Flex, Flash Media Server, RED5, Flash Lite, PHP, ZendAMF, AMFPHP, Java, GraniteDS, BlazeDS</description>
	<lastBuildDate>Wed, 08 Sep 2010 06:08:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Check if your site is compatible with mobile devices in Adobe Device Central CS5</title>
		<link>http://www.leonardofranca.com/index.php/2010/09/08/check-if-your-site-is-compatible-with-mobile-devices-in-adobe-device-central-cs5/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/09/08/check-if-your-site-is-compatible-with-mobile-devices-in-adobe-device-central-cs5/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 06:08:11 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Nintendo Wii]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=738</guid>
		<description><![CDATA[
			
				
			
		
nsurprisingly the growing use of mobile devices like smartphones, tablets, etc. With the great increase in access to 3G data network, we have a new class of users that need special attention. Did your site is compatible with mobile devices? if not, it should be because the mobile user can be just who will purchase [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F09%2F08%2Fcheck-if-your-site-is-compatible-with-mobile-devices-in-adobe-device-central-cs5%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F09%2F08%2Fcheck-if-your-site-is-compatible-with-mobile-devices-in-adobe-device-central-cs5%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.adobe.com/products/creativesuite/devicecentral/?promoid=ZALP"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/09/adobe_device_central_cs5_thumb.jpg" alt="Site visto no Adobe Device Central CS5" title="adobe_device_central_cs5_thumb" width="120" height="116" class="alignleft size-full wp-image-1179" /></a>nsurprisingly the growing use of mobile devices like smartphones, tablets, etc. With the great increase in access to 3G data network, we have a new class of users that need special attention. Did your site is compatible with mobile devices? if not, it should be because the mobile user can be just who will purchase your product or service<span id="more-738"></span>.</p>
<blockquote><p>
Did your site is compatible with mobile devices? if not, it should be because the mobile user can be just who will purchase your product or service.
</p></blockquote>
<p>The major banks have already realized this and most already have a version of its Internet banking to mobile devices, including to perform operations that you normally do on the site to pay bills, view balances etc..<br />
Adobe Device Central software is a part of Adobe Creative Suite family that aims to emulate the operation of mobile devices on your desktop. It is mainly used to test the functionality of Flash Lite on smartphones. But it can also be used to test your html pages and simulate the operation of any mobile device.</p>
<p>To open a page or site in Adobe Device Central CS5, just follow these steps:</p>
<ul>
<li>After opening the program, go to &#8220;Device Profiles&#8221; and click &#8220;Browse Devices&#8221;. A list of profiles of models of smartphones, select a few for your tests (right-click and ask for the &#8220;Add to Test Devices&#8221;)</li>
<li>Should see the selected device and its technical specification. Now just go to &#8220;File-> Open File &#8230;&#8221; to open a file or &#8220;File-> Open URL &#8230;&#8221; to open a site directly. In my case, ask to open the url of my blog on Nokia 5230:<div id="attachment_1219" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/09/adobe_device_central_cs5.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/09/adobe_device_central_cs5-150x150.jpg" alt="Adobe Device Central CS5" title="adobe_device_central_cs5" width="150" height="150" class="size-thumbnail wp-image-1219" /></a><p class="wp-caption-text">Adobe Device Central CS5</p></div></li>
</ul>
<p>You also have the option to call the Adobe Device Central Adobe Dreamweaver CS5 directly by, just ask &#8220;File-> Preview in Browser-> Device Central&#8221;.<br />
On my blog, I use the plugin <a href="http://crowdfavorite.com/wordpress/plugins/wordpress-mobile-edition/">WordPress Mobile Edition</a> which formats the blog to be accessed on mobile devices.</p>
<p><strong>Adobe Device Central  is included in the following Creative Suite 5 products:</strong></p>
<ul>
<li><a href="http://www.adobe.com/products/creativesuite/design/">Adobe Creative Suite® 5 Design Premium</a></li>
<li><a href="http://www.adobe.com/products/creativesuite/designstandard/">Adobe Creative Suite 5 Design Standard</a></li>
<li><a href="http://www.adobe.com/products/creativesuite/web/">Adobe Creative Suite 5 Web Premium</a></li>
<li><a href="http://www.adobe.com/products/creativesuite/production/">Adobe Creative Suite 5 Production Premium</a></li>
<li><a href="http://www.adobe.com/products/creativesuite/mastercollection/">Adobe Creative Suite 5 Master Collection</a></li>
<li><a href="http://www.adobe.com/products/photoshop/photoshopextended/">Adobe Photoshop® CS5 Extended</a></li>
<li><a href="http://www.adobe.com/products/photoshop/photoshop/">Adobe Photoshop CS5</a></li>
<li><a href="http://www.adobe.com/products/illustrator/">Adobe Illustrator® CS5</a></li>
<li><a href="http://www.adobe.com/products/flash/">Adobe Flash® Professional CS5</a></li>
<li><a href="http://www.adobe.com/products/dreamweaver/">Adobe Dreamweaver® CS5</a></li>
<li><a href="http://www.adobe.com/products/premiere/">Adobe Premiere® Pro CS5</a></li>
<li><a href="http://www.adobe.com/products/aftereffects/">Adobe After Effects® CS5</a></li>
<li><a href="http://www.adobe.com/products/fireworks/">Adobe Fireworks® CS5</a></li>
</ul>
<p>More:<br />
<a href="http://www.adobe.com/products/creativesuite/devicecentral/?promoid=ZALP">http://www.adobe.com/products/creativesuite/devicecentral/?promoid=ZALP</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=0470584769&#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=0321704509&#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=0321701771&#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=0321701801&#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>
<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=B003B328TE&#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=B003D8XEBS&#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=B003B32AA6&#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=B003D8XEHW&#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>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/09/08/check-if-your-site-is-compatible-with-mobile-devices-in-adobe-device-central-cs5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing games for the Nintendo Wii with Adobe Flash</title>
		<link>http://www.leonardofranca.com/index.php/2010/09/02/developing-games-for-the-nintendo-wii-with-adobe-flash/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/09/02/developing-games-for-the-nintendo-wii-with-adobe-flash/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 07:34:19 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nintendo Wii]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=667</guid>
		<description><![CDATA[
			
				
			
		
The Nintendo Wii is one of today's most popular console, with their control until then innovative for its release, became a video game "for family" and for various utilities. Today, the Nintendo Wii is used in various parts of the world not only for entertainment but also in areas such as physiotherapy for recovering patients [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F09%2F02%2Fdeveloping-games-for-the-nintendo-wii-with-adobe-flash%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F09%2F02%2Fdeveloping-games-for-the-nintendo-wii-with-adobe-flash%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.nintendo.com/wii"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/top_left_off-e1282913645251.png" alt="" title="Nintendo Wii" width="120" height="110" class="alignleft size-full wp-image-1048" /></a>The Nintendo Wii is one of today's most popular console, with their control until then innovative for its release, became a video game "for family" and for various utilities. Today, the Nintendo Wii is used in various parts of the world not only for entertainment but also in areas such as <a href="http://www.fisiogames.com.br/">physiotherapy</a> for <a href="http://francodesign.blogspot.com/2007/12/wii-fit-fisioterapeutas-utilizam-wii-na.html">recovering</a> patients <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-667"></span></p>
<blockquote><p>
Today, the Nintendo Wii is used in various parts of the world not only for entertainment but also in areas such as <a href="http://www.fisiogames.com.br/">physiotherapy</a> for <a href="http://francodesign.blogspot.com/2007/12/wii-fit-fisioterapeutas-utilizam-wii-na.html">recovering</a> patients <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p></blockquote>
<p>Well, we know it is possible to develop Flash for the Nintendo Wii, but we must observe some details first. Consider the specification of the Flash Player for the Nintendo Wii contained in Adobe Device Central CS5.<br />
<div id="attachment_1067" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/espec_flash_player_wii.png"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/espec_flash_player_wii-150x150.png" alt="" title="espec_flash_player_wii" width="150" height="150" class="size-thumbnail wp-image-1067" /></a><p class="wp-caption-text">Specification Flash Player in Nintendo Wii</p></div><br />
Note that we have to work with Flash Player 7, but Nintendo's website says it <a href="http://www.nintendo.com/consumer/systems/wii/en_na/channelsInternet.jsp">can be upgraded to Flash Player 8</a>, and the application will run for the Wii browser, your browser is a version of Opera made exclusively for the Wii.<br />
<a href="http://en.wikipedia.org/wiki/Internet_Channel">Wikipedia</a> say that it updated Flash Player to Adobe Flash Lite 3.1 which corresponds to a full implementation of Adobe Flash version 8 with certain features of Flash Player 9. But i created a file Flash Player 9 with ActionScript 2.0 and it worked, Flash Player 9 with ActionScript 3.0 does not work and Flash Lite 3.1 worked. <strong>I stayed with Flash Player 9 with ActionScript 2.0 for my test. (System.capabilities.version show AFL 9,1,122,0)</strong><br />
Let's do an example first to see how is the operation of the Flash Player with the Wii Remote.</p>
<ul>
<li>Create a new file type ActionScript 2.0 and soon after, put the movie to compile in Flash Player 8 or 9. Or you can do this directly through Adobe Device Central CS5, which leaves everything configured for you, including the size ideial to run on the Wii browser.</li>
<li>The purpose of this example is to evaluate the functioning of the buttons of the Wii Remote, create a symbol of type MovieClip.</li>
<li>Enter the following code in the movieclip so that our symbol can be dragged by the Wii Remote:
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-2">
<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;">onClipEvent</span><span style="color: #66cc66;">&#40;</span>mouseDown<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;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">startDrag</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;"><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;"><span style="color: #0066CC;">onClipEvent</span><span style="color: #66cc66;">&#40;</span>mouseUp<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;">&nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">stopDrag</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;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
</li>
</ul>
<p>From what I understand, only in mouse events we can use the Nintendo Wii was not possible to use the other buttons and directional pad.<br />
You can test the example by opening the following URL in the browser from the Wii <a href="http://www.leonardofranca.com.br/wii">http://www.leonardofranca.com.br/wii</a> or watch the video below.<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/VZo4y8zt8Yg&#038;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/VZo4y8zt8Yg&#038;hl=pt&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Despite the limitation of only using the mouse events, can you make very interesting applications in Flash for the Nintendo Wii. I leave a link with some games for the Nintendo Wii made in Flash. <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
<a href="http://www.eiksoft.com/wii/index.htm">http://www.eiksoft.com/wii/index.htm</a></p>
<p>More:<br />
<a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm">Documentation ActionScript 2.0</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=0321701801&#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=1449380255&#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=0240522079&#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>
<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=B003B32AJ2&#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=B003D8XEHW&#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=B003B32AJC&#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>
<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=B003EGULF6&#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=B0009VXBAQ&#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=B003EH0BQ4&#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>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/09/02/developing-games-for-the-nintendo-wii-with-adobe-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Accelerometer on Flash Lite with Nokia Platform Services</title>
		<link>http://www.leonardofranca.com/index.php/2010/08/30/using-accelerometer-on-flash-lite-with-nokia-platform-services/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/08/30/using-accelerometer-on-flash-lite-with-nokia-platform-services/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 15:17:39 +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=690</guid>
		<description><![CDATA[
			
				
			
		
Accelerometer is a motion sensor, one device responsible for measuring the relative positions of the axes x, y and z, ie, calculate the acceleration of the object. Today it is used for a variety of utilities such as: air bags, vibration measurement, measurement of inclination, smartphones, video games etc.

The accelerometer is used today is used [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F08%2F30%2Fusing-accelerometer-on-flash-lite-with-nokia-platform-services%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F08%2F30%2Fusing-accelerometer-on-flash-lite-with-nokia-platform-services%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/acelerometro-e1283102101239.jpeg" alt="" title="acelerometro" width="120" height="89" class="alignleft size-full wp-image-1101" />Accelerometer is a motion sensor, one device responsible for measuring the relative positions of the axes x, y and z, ie, calculate the acceleration of the object. Today it is used for a variety of utilities such as: air bags, vibration measurement, measurement of inclination, smartphones, video games etc<span id="more-690"></span>.</p>
<blockquote><p>
The accelerometer is used today is used for a variety of utilities such as: air bags, vibration measurement, measurement of inclination, smartphones, video games etc.
</p></blockquote>
<p>Flash Player 10.1 (only for mobile) and Flash Lite 4.0 have access to the device's accelerometer. I'm anxious to get their hands on a Nokia N8 to test new features <a href="http://help.adobe.com/en_US/flashlite/dev/4/index.html">Flash Lite 4.0</a>, but this hard. Meanwhile, we are developing with Flash Lite 3.0 and 3.1.<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 using the accelerometer 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 - /Users/<user name>/Library/Application/Support/Adobe/Flash CS5/en/Configuration/Classes/</li>
<li>Windows Vista - /Users/<user name>/AppData/Local/Adobe/Flash CS4/en/Configuration/Classes.</li>
<li>Windows XP - /<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 symbol of type MovieClip and give it the instance name of "ball_mc".</li>
<li>Create three text fields of type dynamic, therein are shown the positions x, y and z.</li>
<li>We must have a stage like this:<div id="attachment_1119" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/stage_acelerometro.png"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/stage_acelerometro-150x150.png" alt="" title="stage_acelerometro" width="150" height="150" class="size-thumbnail wp-image-1119" /></a><p class="wp-caption-text">Stage for test Accelerometer</p></div></li>
</ul>
<p>This done, let's now part of programming:<br />
We will start setting the stage for not changing the size of the application if the window is resized. The "DisableKeypadCompatibilityMode" is for use in smartphones with touch screens, if not used, the smartphone will automatically add the virtual keys corresponding to a non-touchscreen smartphone.</p>
<div class="igBar"><span id="lactionscript-7"><a href="#" onclick="javascript:showPlainTxt('actionscript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-7">
<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;">Stage</span>.<span style="color: #0066CC;">scaleMode</span> = <span style="color: #ff0000;">&quot;noScale&quot;</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: #0066CC;">Stage</span>.<span style="color: #0066CC;">align</span> = <span style="color: #ff0000;">&quot;LT&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;</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;">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: 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;FullScreen&quot;</span>, <span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Now let's import the classes made by Nokia and use the Device class and disable the autorotation of the application.</p>
<div class="igBar"><span id="lactionscript-8"><a href="#" onclick="javascript:showPlainTxt('actionscript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-8">
<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;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">nokia</span>.<span style="color: #006600;">lib</span>.<span style="color: #006600;">Device</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: #000000; font-weight: bold;">var</span> deviceObject:<span style="color: #0066CC;">Object</span> = <span style="color: #000000; font-weight: bold;">new</span> Device<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;">deviceObject.<span style="color: #006600;">DisableAutoRotation</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Service will use the class by passing the parameter sensor and then passing the criterion for a search the coordinates of the accelerometer.</p>
<div class="igBar"><span id="lactionscript-9"><a href="#" onclick="javascript:showPlainTxt('actionscript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-9">
<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> sensors = <span style="color: #000000; font-weight: bold;">new</span> Service<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Service.Sensor&quot;</span>, <span style="color: #ff0000;">&quot;ISensor&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;"><span style="color: #000000; font-weight: bold;">var</span> inParam = <span style="color: #66cc66;">&#123;</span>SearchCriterion:<span style="color: #ff0000;">&quot;AccelerometerAxis&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;"><span style="color: #000000; font-weight: bold;">var</span> outParams = sensors.<span style="color: #006600;">FindSensorChannel</span><span style="color: #66cc66;">&#40;</span>inParam<span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Will return a series of values we use to "advise" the smartphone that our application will be updated with every change in value of the coordinates of the accelerometer through a callback method.</p>
<div class="igBar"><span id="lactionscript-10"><a href="#" onclick="javascript:showPlainTxt('actionscript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-10">
<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> channelInfo = 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;"><span style="color: #000000; font-weight: bold;">var</span> channelId = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">ChannelId</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> contextType = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">ContextType</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; font-weight: bold;">var</span> quantity = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">Quantity</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> channelType = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">ChannelType</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; font-weight: bold;">var</span> location = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">Location</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> vendorId = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">VendorId</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; font-weight: bold;">var</span> dataItemSize = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">DataItemSize</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> channelDataTypeId = channelInfo<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">ChannelDataTypeId</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; font-weight: bold;">var</span> channelParams = <span style="color: #66cc66;">&#123;</span>ChannelId:channelId, ContextType:contextType, Quantity:quantity, ChannelType:channelType, Location:location, VendorId:vendorId, DataItemSize:dataItemSize, ChannelDataTypeId:channelDataTypeId<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;</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; font-weight: bold;">var</span> inParams = <span style="color: #66cc66;">&#123;</span>ListeningType:<span style="color: #ff0000;">&quot;ChannelData&quot;</span>, ChannelInfoMap:channelParams<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;">sensors.<span style="color: #006600;">RegisterForNotification</span><span style="color: #66cc66;">&#40;</span>inParams, callBack<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: #000000; font-weight: bold;">function</span> callBack<span style="color: #66cc66;">&#40;</span>transactionID:<span style="color: #0066CC;">String</span>, eventID:<span style="color: #0066CC;">String</span>, outParam:<span style="color: #0066CC;">Object</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;"><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; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>outParam.<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: 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: #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; <span style="color: #000000; font-weight: bold;">var</span> channelData = outParam.<span style="color: #006600;">ReturnValue</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; txtX.<span style="color: #0066CC;">text</span> = channelData.<span style="color: #006600;">XAxisData</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; txtY.<span style="color: #0066CC;">text</span> = channelData.<span style="color: #006600;">YAxisData</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; txtZ.<span style="color: #0066CC;">text</span> = channelData.<span style="color: #006600;">ZAxisData</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; xSpeed -= channelData.<span style="color: #006600;">XAxisData</span><span style="color: #66cc66;">/</span>NOISE;</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; ySpeed += channelData.<span style="color: #006600;">YAxisData</span><span style="color: #66cc66;">/</span>NOISE;</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: #66cc66;">&#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: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Then just update the x and y coordinates with the values and xSpeed ySpeed in our MovieClip. Made available at the source code to define how far the MovieClip can walk, or only in the area of our application.<br />
<a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/acelerometro.zip"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/archive.png" alt="" title="archive" width="46" height="60" valign="absmiddle" /></a> <strong><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/acelerometro.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/08/30/using-accelerometer-on-flash-lite-with-nokia-platform-services/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Options for Mobile Development</title>
		<link>http://www.leonardofranca.com/index.php/2010/08/19/options-for-mobile-development/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/08/19/options-for-mobile-development/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 21:07:56 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[JME]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=606</guid>
		<description><![CDATA[
			
				
			
		
The mobile market is one of the fastest growing lately, and with it the demand for applications for this growing niche also bringing one more option for anyone who is a developer and new business opportunities. You developer who likes to keep up, you know exactly what I'm talking about. In this article I gathered [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F08%2F19%2Foptions-for-mobile-development%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F08%2F19%2Foptions-for-mobile-development%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/08/hero1-e1281834448422.jpg" alt="Desenvolvimento Mobile" title="" width="150" height="78" class="alignleft size-full wp-image-849" />The mobile market is one of the fastest growing lately, and with it the demand for applications for this growing niche also bringing one more option for anyone who is a developer and new business opportunities. You developer who likes to keep up, you know exactly what I'm talking about. In this article I gathered some links that those who want to start with mobile development in at least three different platform in which I had lately demands.<span id="more-606"></span></p>
<blockquote><p>The mobile market is one of the fastest growing lately, and with it the demand for applications for this growing niche also bringing one more option for anyone who is a developer and new business opportunities</p></blockquote>
<p>Among the platforms available for mobile development, we can highlight:</p>
<ul>
<li>Java with JME</li>
<li>Nokia Qt, besides being able to use WRT(Web RunTime)</li>
<li>Flash Lite</li>
<li>Android SDK from Google with the addition of Adobe AIR and Flash Player 10.1</li>
<li>IPhone</li>
</ul>
<p>'ll Comment a little bit of each:</p>
<p><strong>Java with JME</strong><br />
JME (Java Micro Edition) is the version that Sun offers for you to program in Java for mobile devices. It offers an enormous range of API's that were made specifically. Has a very complete <a href="http://www.oracle.com/technetwork/java/javame/documentation/apis-jsp-137855.html">documentation</a> and several examples. I leave a link <a href="http://www.autexier.de/jmau/dev/j2me/j2me.html">how to set up your environment for development JME</a>.</p>
<p><strong>Nokia Qt</strong><br />
Nokia offers <a href="http://qt.nokia.com/">Qt</a>, Cross-plaftorm application and UI framework, with specific libraries for mobile devices (such as <a href="http://qt.nokia.com/developer/new-qt-apis">QTMobility</a>). You program in C++ and there is an interface language like MXML. Has its own IDE and has emulators for Symbian S60, 40 and <a href="http://www.symbiantweet.com/symbian3-is-here">Symbian^3</a> beyond  <a href="http://maemo.nokia.com/">Maemo </a>and <a href="http://meego.com/">Meego</a>.</p>
<p><strong>Adobe Flash Lite</strong><br />
Adobe Flash Lite still has <a href="http://www.leonardofranca.com/index.php/2010/07/29/flash-lite-is-dead/">space on the market</a>, with a different version of the Flash player with some features specific to mobile devices. The development environment is to own Adobe Flash Professional and Adobe Device Central.</p>
<p><strong>Google Android</strong><br />
Google offers for the Android platform a set of <a href="http://developer.android.com/sdk/index.html">SDK's  and emulators</a> for the different versions of its operating system with each passing day it becomes more popular. It has a plugin for you to program in Eclipse, the <a href="https://dl-ssl.google.com/android/eclipse/">Android Development Tools(ADT)</a>. The language used is Java. From Android 2.2 (Froyo) you have the option to create applications in Adobe AIR, the AIR runtime is installed on the device and you create the application using Adobe Flash Professional (which has an extension to create the files .apk) or Adobe Flash Builder.</p>
<p><strong>Apple IPhone</strong><br />
Who wants to program for iPhone, ipad and the like, <a href="http://developer.apple.com/iphone/index.action"> Apple provides an SDK</a>. You use the <a href="http://developer.apple.com/iphone/library/referencelibrary/GettingStarted/Learning_Objective-C_A_Primer/index.html#//apple_ref/doc/uid/TP40007594">Objective-C</a> language, derived from C, and some interesting libraries developed for working with muiltitouch like <a href="http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html#//apple_ref/doc/uid/TP40002974">Cocoa</a>.  We'll find a list of <a href="http://iphoneized.com/2009/11/18-mobile-frameworks-development-tools-creating-iphone-apps/">frameworks</a>.</p>
<p>Well, we have options, it behooves us to analyze only that can best serve our customers. Should stay something about <a href="http://www.windowsphone7.com/">Windows Phone 7</a> because it seems to me very promising and deserves attention too.</p>
<p><strong>Recommended Books:</strong><br />
<strong>JME</strong><br />
<a href="http://www.amazon.com/gp/product/1430210613?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430210613">Beginning Java&trade; ME Platform (Beginning from Novice to Professional)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1430210613" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0072227109?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0072227109">J2ME: The Complete Reference</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0072227109" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0131405306?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0131405306">Enterprise J2ME: Developing Mobile Java Applications</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0131405306" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1592001181?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1592001181">J2ME Game Programming (Game Development)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1592001181" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><strong>Nokia Qt, C++, Symbian, Meego</Strong><br />
<a href="http://www.amazon.com/gp/product/0470750103?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470750103">Qt for Symbian</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0470750103" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1155266609?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1155266609">S60 (Software Platform): Qt, Nokia 5800 Xpressmusic, S60, Nokia Pc Suite, Python for S60, the Core Pocket Media Player, Nokia E75</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1155266609" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1430231777?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430231777">Beginning Nokia Apps Development: Using MeeGo, Mobile QT and OpenSymbian</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1430231777" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0470744197?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470744197">Porting to the Symbian Platform: Open Mobile Development in C/C++ (Symbian Press)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0470744197" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><strong>Adobe Flash Lite</strong><br />
<a href="http://www.amazon.com/gp/product/1430219041?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430219041">AdvancED Flash on Devices: Mobile Development with Flash Lite and Flash 10</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1430219041" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0470547480?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470547480">Professional Flash Lite Mobile Development (Wrox Programmer to Programmer)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0470547480" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1590595580?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1590595580">Foundation Flash Applications for Mobile Devices</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1590595580" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><strong>Android</strong><br />
<a href="http://www.amazon.com/gp/product/1934356565?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1934356565">Hello, Android: Introducing Google's Mobile Development Platform (Pragmatic Programmers)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1934356565" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596521472?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596521472">Android Application Development: Programming with the Google SDK</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0596521472" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0470565527?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470565527">Professional Android 2 Application Development (Wrox Programmer to Programmer)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0470565527" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><strong>IPhone</strong><br />
<a href="http://www.amazon.com/gp/product/1430224592?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430224592">Beginning iPhone 3 Development: Exploring the iPhone SDK</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1430224592" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0321706242?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0321706242">iPhone Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0321706242" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0321659570?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0321659570">The iPhone Developer's Cookbook: Building Applications with the iPhone 3.0 SDK (2nd Edition)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0321659570" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><strong>Windows Phone 7</strong><br />
<a href="http://www.amazon.com/gp/product/1449388361?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1449388361">Learning Windows Phone Programming</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1449388361" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1430229284?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1430229284">Windows Mobile Game Development: Building games for the Windows Phone and other mobile devices (Expert's Voice in .NET)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=1430229284" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0735643350?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0735643350">Programming Windows Phone 7</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0735643350" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/08/19/options-for-mobile-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Lite is dead?</title>
		<link>http://www.leonardofranca.com/index.php/2010/07/29/flash-lite-is-dead/</link>
		<comments>http://www.leonardofranca.com/index.php/2010/07/29/flash-lite-is-dead/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 03:11:00 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=597</guid>
		<description><![CDATA[
			
				
			
		
One of the questions you do lately is the possible death of Flash Lite. We have the Flash Player 10.1 optimized for mobile and Adobe AIR 2.5 for Android, and with that Flash Lite would be in their final days.
I've read articles that argued that Adobe did not know that capitalize on the success that [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F07%2F29%2Fflash-lite-is-dead%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2010%2F07%2F29%2Fflash-lite-is-dead%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.leonardofranca.com.br/wp-content/uploads/2010/07/nokia_121609.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2010/07/nokia_121609.jpg" alt="" title="nokia_121609" width="125" height="102" class="alignleft size-full wp-image-823" /></a>One of the questions you do lately is the possible death of Flash Lite. We have the Flash Player 10.1 optimized for mobile and Adobe AIR 2.5 for Android, and with that Flash Lite would be in their final days.<br />
I've read articles that argued that Adobe did not know that capitalize on the success that Macromedia has with Flash Lite in Japan and began to give priority for mobile systems only now<span id="more-597"></span>. This can be a little truth, but Adobe does not mess around, now this with full force for a variety of devices, not only mobile.<br />
Now our question which gave title to the article, along with Flash Player 10.1, Adobe released Flash Lite 4.0 also, being a version of Flash Player for devices with limited processing resources and memory but with support for ActionScript 3.0. See the list of <a href="http://help.adobe.com/en_US/flashlite/dev/4/WS58a04a822e3e5010cf686a7122f627160e-7ffb.html">features available here</a>.<br />
For one thing, each day brings more smartphones come with Android 2.2 (Froyo), which officially supports the Flash Player 10.1 and Adobe AIR 2.5. Also, we're seeing with Android smartphones (earlier) being updated with Froyo. That is, based on Flash contents tends to grow with these major smartphones. On the other hand so far, have only a smartphone officially announced with Flash Lite 4.0, the <a href="http://www.forum.nokia.com/Devices/Device_specifications/N8/">Nokia N8</a> and possibly  <a href="http://www.engadget.com/2010/06/10/nokia-c7-caught-with-8-megapixel-camera/">Nokia C7</a>, the question remains, still worthwhile to develop content for Flash Lite?<br />
And my answer is <strong>YES</strong>, even for <a href="http://help.adobe.com/en_US/flashlite/dev/2x3x/index.html">Flash Lite 3.0 or 3.1</a>(ActionScript 2.0) especially for Nokia devices and why I say this. Let's see some facts:</p>
<ul>
<li>Nokia is still <a href="http://communities-dominate.blogs.com/brands/2010/02/phone-market-shares-for-year-of-2009-and-last-quarter-2009.html">world leader</a> on mobile devices and how it has always been an innovator(<a href="http://www.gamevicio.com.br/i/noticias/49/49290-nokia-alfineta-apple-priorizamos-o-desempenho-da-antena/index.html">was the first to put an internal antenna</a>), not let that lead get away so easy</li>
<li>The operating system <a href="http://communities-dominate.blogs.com/brands/2010/02/phone-market-shares-for-year-of-2009-and-last-quarter-2009.html">Symbian</a> is still the most used for mobile systems, and Nokia betting on Symbian will continue with the <a href="http://meego.com/">Meego</a>(Linux-based)</li>
<li>We have an extensive list of phones <a href="http://www.flashlite4nokia.com/">Nokia that has Flash Lite 2.0 or 3.0</a> , about 400 million around the world, many now arriving in Brazil</li>
<li><a href="http://www.flashlite4se.com/">Sony</a> and Samsung also has a good range of handsets with Flash Lite</li>
<li>Is starting to grow the number of applications in Portuguese on <a href="https://store.ovi.com/applications">OVI Store</a>, highlight for <a href="http://store.ovi.com/content/34057">MTV Ao Vivo</a>, the <a href="http://store.ovi.com/content/22806">Terra TV</a> and <a href="http://store.ovi.com/content/40292">VEJA São Paulo</a></li>
<li>Nokia has created a <a href="http://www.forum.nokia.com/info/sw.nokia.com/id/43ca0681-c8c6-4684-ad71-c4ac41f3ee4f/Flash_Lite_Developers_Library.html"> library </a>especially to increase the capabilities of Flash Lite</li>
<li><a href="http://www.adobe.com/devnet/devicecentral/">Adobe Device Central</a> CS5 offers a fairly complete for you to test your application in various mobile devices</li>
<li><a href="http://www.adobe.com/devnet/devices/nokia.html">Nokia and Adobe</a> were the first to contribute to the project <a href="http://www.openscreenproject.org/developers/get_started.html">Open Screen Project</a> - one content, several devices</li>
</ul>
<p>So in conclusion, is a market for development and yet it is worth studying (and remember) Actionscript 2.0. I believe that we will have two or three years of life for Flash Lite.</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>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2010/07/29/flash-lite-is-dead/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Increasing the power of Flash Lite with the S60 Platform Services</title>
		<link>http://www.leonardofranca.com/index.php/2009/12/21/increasing-the-power-of-flash-lite-with-the-s60-platform-services/</link>
		<comments>http://www.leonardofranca.com/index.php/2009/12/21/increasing-the-power-of-flash-lite-with-the-s60-platform-services/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 23:21:11 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=526</guid>
		<description><![CDATA[
			
				
			
		
Nokia has created a set of classes to be used in conjunction with Flash Lite, the Flash Lite Developer's Library, allowing you to create flash content for different devices designed to platform S60.
O S60 Platform Services aims, to increase the power of Flash Lite, giving access to resources that natively, are not supported in Flash [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2009%2F12%2F21%2Fincreasing-the-power-of-flash-lite-with-the-s60-platform-services%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2009%2F12%2F21%2Fincreasing-the-power-of-flash-lite-with-the-s60-platform-services%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Nokia has created a set of classes to be used in conjunction with Flash Lite, the Flash Lite Developer's Library, allowing you to create flash content for different devices designed to platform S60.<br />
O S60 Platform Services aims, to increase the power of Flash Lite, giving access to resources that natively, are not supported in Flash Lite still.<br />
A API Services is supported on devices with Flash Lite 3.0 and Symbian S60 5th Edition including Nokia N97.<br />
The following are some examples of uses of the API Services.<span id="more-526"></span>.</p>
<ul>
<li><a href="GUID-E092BF10-C076-4476-9E80-87919940201B.html#GUID-E092BF10-C076-4476-9E80-87919940201B" shape="rect">Access and launch applications on a device</a> using the <a href="GUID-2D651505-F68C-4053-B565-9FF826C5B897.html#GUID-2D651505-F68C-4053-B565-9FF826C5B897" shape="rect">AppManager Service API</a></li>
<li><a href="GUID-AE9A928B-F938-49B5-BC9E-72CB42046571.html#GUID-AE9A928B-F938-49B5-BC9E-72CB42046571" shape="rect">Access and manage calendar information</a> using the <a href="GUID-CABB28B8-D2B1-496B-BD7E-34FF496E60B4.html#GUID-CABB28B8-D2B1-496B-BD7E-34FF496E60B4" shape="rect">Calendar Service API</a></li>
<li><a href="GUID-662F2E2E-9538-42E5-9B5A-5664F1C11A9E.html#GUID-662F2E2E-9538-42E5-9B5A-5664F1C11A9E" shape="rect">Access and manage information about contacts</a> using the <a href="GUID-A5853293-7B83-4CCE-9C29-B2B8F0CD8A18.html#GUID-A5853293-7B83-4CCE-9C29-B2B8F0CD8A18" shape="rect">Contacts Service API</a></li>
<li><a href="GUID-D581028C-06ED-422D-866E-AE6C93075084.html#GUID-D581028C-06ED-422D-866E-AE6C93075084" shape="rect">Access and manage information about landmarks</a> using the <a href="GUID-B8845FF1-D7F6-476A-8651-8B9C12D8789F.html#GUID-B8845FF1-D7F6-476A-8651-8B9C12D8789F" shape="rect">Landmarks Service API</a></li>
<li><a href="GUID-CF55DBA3-2D4C-4FD0-8A06-862E6128F4E7.html#GUID-CF55DBA3-2D4C-4FD0-8A06-862E6128F4E7" shape="rect">Access device logging events</a> using the <a href="GUID-F003B7DD-E450-49AD-B447-C5132FE47D3C.html#GUID-F003B7DD-E450-49AD-B447-C5132FE47D3C" shape="rect">Logging Service API</a></li>
<li><a href="GUID-4DDE31C7-EC0D-4EEC-BC3A-A0B0351154F8.html#GUID-4DDE31C7-EC0D-4EEC-BC3A-A0B0351154F8" shape="rect">Access device location information and perform location-based calculations</a> using the <a href="GUID-53CE4DE6-F065-4339-8C18-5C30A9540053.html#GUID-53CE4DE6-F065-4339-8C18-5C30A9540053" shape="rect">Location Service API</a></li>
<li><a href="GUID-E3D26890-581A-427F-8AFF-16081528A8B8.html#GUID-E3D26890-581A-427F-8AFF-16081528A8B8" shape="rect">Access information about media files stored on a device</a> using the <a href="GUID-E5684FF0-28C9-4721-9421-6B9432087086.html#GUID-E5684FF0-28C9-4721-9421-6B9432087086" shape="rect">Media Management Service API</a></li>
<li><a href="GUID-2240F5BE-97BD-4CB3-8DB3-B5CF7C23BF54.html#GUID-2240F5BE-97BD-4CB3-8DB3-B5CF7C23BF54" shape="rect">Send, retrieve, and manage messages such as SMS and MMS</a> using the <a href="GUID-91579EE5-A608-401C-82B4-DCF1723EC7B5.html#GUID-91579EE5-A608-401C-82B4-DCF1723EC7B5" shape="rect">Messaging Service API</a></li>
<li><a href="GUID-6FBE64B7-0949-4AAE-B835-52B276540A59.html#GUID-6FBE64B7-0949-4AAE-B835-52B276540A59" shape="rect">Access data from the physical sensors of a device</a> using the <a href="GUID-B77C2006-879F-4AC6-B7BF-04B25B563A29.html#GUID-B77C2006-879F-4AC6-B7BF-04B25B563A29" shape="rect">Sensor Service API</a></li>
<li><a href="GUID-E0ED671A-BBDA-4C07-828F-BD35782D9B36.html#GUID-E0ED671A-BBDA-4C07-828F-BD35782D9B36" shape="rect">Access and modify system information on a device</a> using the <a href="GUID-AEB26A58-1DE2-46CB-81EC-6DB3A477B7A3.html#GUID-AEB26A58-1DE2-46CB-81EC-6DB3A477B7A3" shape="rect">SystemInfo Service API</a></li>
</ul>
<p>Another nice example:<br />
Accessing GPS with Nokia Platform Services<br />
<a href="http://vimeo.com/7343089">http://vimeo.com/7343089</a><br />
<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7343089&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7343089&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object></p>
<p>to learn:<br />
<a href="http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Flash_Lite/QuickStart.xhtml">http://www.forum.nokia.com/Technology_Topics/Web_Technologies/Flash_Lite/QuickStart.xhtml</a><br />
Using Platform Services<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>Flash Lite Developer’s Library<br />
<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/43ca0681-c8c6-4684-ad71-c4ac41f3ee4f/Flash_Lite_Developers_Library.html">http://www.forum.nokia.com/info/sw.nokia.com/id/43ca0681-c8c6-4684-ad71-c4ac41f3ee4f/Flash_Lite_Developers_Library.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2009/12/21/increasing-the-power-of-flash-lite-with-the-s60-platform-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stream with Flex or Flash or Flash Lite and Flash Media Server</title>
		<link>http://www.leonardofranca.com/index.php/2009/08/22/stream-with-flex-or-flash-or-flash-lite-and-flash-media-server/</link>
		<comments>http://www.leonardofranca.com/index.php/2009/08/22/stream-with-flex-or-flash-or-flash-lite-and-flash-media-server/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 03:58:54 +0000</pubDate>
		<dc:creator>Leonardo França</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Flash Media Server]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.leonardofranca.com/?p=458</guid>
		<description><![CDATA[
			
				
			
		
Recent years have seen an explosion of growth of multimedia content available, but also the growing use of broadband, we have more users with access to multimedia content, but the main factor was the ease that Flash brought to this kind of implementation of rich content (or you think that if youtube was done with [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2009%2F08%2F22%2Fstream-with-flex-or-flash-or-flash-lite-and-flash-media-server%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.leonardofranca.com%2Findex.php%2F2009%2F08%2F22%2Fstream-with-flex-or-flash-or-flash-lite-and-flash-media-server%2F&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Recent years have seen an explosion of growth of multimedia content available, but also the growing use of broadband, we have more users with access to multimedia content, but the main factor was the ease that Flash brought to this kind of implementation of rich content (or you think that if youtube was done with windows media, would have the same result <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ), Including mobile devices. Recently we had the highest peaks of people accessing streamed content with the <a href="http://www.flashstreamworks.com/archive.php?post_id=1247089954">funeral of Michael Jackson, not only surpassed by the Obama's Inauguration</a>.<br />
<div id="attachment_494" class="wp-caption aligncenter" style="width: 266px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/fms_with_flash_platform.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/fms_with_flash_platform.jpg" alt="Adobe Flash Media Server e Flash Platform" title="fms_with_flash_platform" width="256" height="200" class="size-full wp-image-494" /></a><p class="wp-caption-text">Adobe Flash Media Server and Flash Platform</p></div><br />
The aim of this paper is to demonstrate how we can make the mere distribution of content streamed using Adobe Flash Media Server along with the <strong>Flash Platform</strong><span id="more-458"></span>.</p>
<p>We will see how to implement a service stream with Adobe Flex, Adobe Flash and Adobe Flash Lite along with the streaming server Adobe Flash Media Server.<br />
<div id="attachment_493" class="wp-caption aligncenter" style="width: 514px"><a href="http://tinyurl.com/installfms"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/adobe_flash_media_server.jpg" alt="Adobe Flash Media Server 3.5" title="adobe_flash_media_server" width="504" height="273" class="size-full wp-image-493" /></a><p class="wp-caption-text">Adobe Flash Media Server 3.5</p></div><br />
Adobe Flash Media Server, currently in its version 3.5, has three versions available:</p>
<ul>
<li>Adobe Flash Media Streaming Server - for transmission to the streaming content with the Flash Platform</li>
<li>Adobe Flash Media Interactive Server - For interactive applications, multi-way communication, videos in real-time, audio, and data sharing.</li>
<li>Adobe Flash Media Development Server - Contains all the features of FMIS, being free and limited to 10 simultaneous connections.</li>
</ul>
<p>In addition to these versions, there are the following:</p>
<ul>
<li><a href="http://www.adobe.com/products/flashmediaencoding/">Adobe Flash Media Encoding Server</a> - Server to convert most formats of videos available on the market for Flash Video format (FLV).</li>
<li><a href="http://www.adobe.com/products/flashmediarightsmanagement/">Adobe Flash Media Rights Management Server </a>- To protect multimedia content used with Adobe Media Player and Adobe AIR.</li>
</ul>
<p><strong>Preparing the Adobe Flash Media Server </strong><br />
The version used in tutorial is Flash Media Server 3.5, see how to install <a href="http://tinyurl.com/installfms">this article from Tom Green</a>, make sure that the server is running normally, and we will create the directory of our application for example, by default, the directories of the applications are created in the path: "C: \ Program Files \ Adobe \ Flash Media Server 3.5 \ applications", I changed the file fms.ini (C: \ Program Files \ Adobe \ Flash Media Server 3.5 \ conf) in the constant "VHOST . APPSDIR "to" C: \ apache \ htdocs \ applications \ ".<br />
That done, let's create the directory of our application giving the name "videoondemand" and within that, another folder called "streams" and within this, a directory called "_definst_" where videos should be saved.<br />
Our structure is ready to receive the videos will be provided for streaming with Flash Media Server, one last detail is to create a file called "main.asc" and save in "videoondemanda" can even be empty, he will be responsible for Flash Media Server recognizes the application. Let's test the console application using Flash Media Server, ( "C: \ Program Files \ Adobe \ Flash Media Server 3.5 \ webroot \ swfs \ fms_adminConsole.swf"), View Applications tab, select the server in my case will place in combobox "new instance ...". select videoOnDemand "if everything is correct, the island had begun to monitor the application.  You should see something like the image below:<br />
<div id="attachment_464" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/07/console_videoondemand.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/07/console_videoondemand-300x213.jpg" alt="Flash Media Server Console" title="console_videoondemand" width="300" height="213" class="size-medium wp-image-464" /></a><p class="wp-caption-text">Flash Media Server Console</p></div><br />
<strong>Stream with Flash and Flash Media Server</strong><br />
Now we just need to create our client that will run the videos, we have several ways to implement this, I will start using Adobe Flash CS4 Professional.</p>
<ul>
<li>Go to "Files-> New .." select Flash File (ActionScript 3.0).</li>
<li>In the library panel, click on the "new Video. Give the name of instance "vd. In Type leave selecting "Video (ActionScript-controlled).<div id="attachment_468" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/07/flash_cs4_new_video.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/07/flash_cs4_new_video-300x213.jpg" alt="Adobe Flash CS4" title="flash_cs4_new_video" width="300" height="213" class="size-medium wp-image-468" /></a><p class="wp-caption-text">Adobe Flash CS4</p></div></li>
<li>Create a layer to write our ActionScript.</li>
</ul>
<p>In the initial code, instantiate the class NetConnection to make the connection to Flash Media Server:</p>
<div class="igBar"><span id="lactionscript3-22"><a href="#" onclick="javascript:showPlainTxt('actionscript3-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-22">
<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> rtmp<span style="color: #000000; font-weight: bold;">:</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: #990000;">&quot;rtmp://localhost/videoOnDemand&quot;</span>;<span style="color: #009900;">//your domain Flash Media Server//</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> 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> = <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;</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> doConnect<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: #004993;">connect</span><span style="color: #000000;">&#40;</span>rtmp<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: #009900;">//nc.objectEncoding=ObjectEncoding.AMF0; // only for Flash Media Server 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; 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;"><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: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">info</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Object</span></a>=evt.<span style="color: #004993;">info</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><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;"><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;">doConnect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
By doing so, we will test pressing ctrl + enter, if all goes well, we should see the following message in the output:</p>
<blockquote><p>NetConnection.Connect.Success</p></blockquote>
<p>Now just implement a function that will instantiate the NetStream class, responsible for the video stream, soon after adding the movieclip that will run the video.</p>
<div class="igBar"><span id="lactionscript3-23"><a href="#" onclick="javascript:showPlainTxt('actionscript3-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-23">
<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> doStream<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; <span style="color: #6699cc; font-weight: bold;">var</span> ns<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netstream%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstream.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStream</span></a>=<span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=netstream%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstream.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStream</span></a><span style="color: #000000;">&#40;</span>nc<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; vd.<span style="color: #004993;">attachNetStream</span><span style="color: #000000;">&#40;</span>ns<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; ns.<span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;sneeze&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; ns.<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>, handlerNetStreamStatus<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; ns.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=asyncerrorevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:asyncerrorevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">AsyncErrorEvent</span></a>.<span style="color: #004993;">ASYNC_ERROR</span>,<span style="color: #004993;">onMetaData</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> handlerNetStreamStatus<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: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">info</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Object</span></a>=evt.<span style="color: #004993;">info</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><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>
</ol>
</div>
</div>
</div>
<p>
We should have the following result:<br />
<div id="attachment_498" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/sample1_stream_flashcs4.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/sample1_stream_flashcs4-300x213.jpg" alt="Stream com Flash e Flash Media Server" title="sample1_stream_flashcs4" width="300" height="213" class="size-medium wp-image-498" /></a><p class="wp-caption-text">Stream com Flash e Flash Media Server</p></div><br />
<strong><a href="http://www.leonardofranca.com.br/files/streamFlashCS4.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>Using the FLVPlayback component</strong></p>
<ul>
<li>Go to "Files-> New .." select Flash File (ActionScript 3.0).</li>
<li>In dry go to "Window-> Components or Ctrl + F7, drag the FLVPlayback component to the stage, in the name of instance myFLVPlayback</li>
</ul>
<p>Now we have to "tell" the component that will be using a video stream content, simply set the isLive property to true:</p>
<div class="igBar"><span id="lactionscript3-24"><a href="#" onclick="javascript:showPlainTxt('actionscript3-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-24">
<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> fl.video.<span style="color: #000000; font-weight: bold;">*</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;">flvPlayer.isLive=<span style="color: #0033ff; font-weight: bold;">true</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;">flvPlayer.<span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;rtmp://localhost/videoondemand/sneeze&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;">flvPlayer.<span style="color: #004993;">scaleMode</span> = VideoScaleMode.MAINTAIN_ASPECT_RATIO;</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;">flvPlayer.<span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Stream with Flex and Flash Media Server </strong><br />
We will see some examples implementing Adobe Flex, the first example will be using the Video class, we instantiate it and add a simple canvas component.<br />
The basics are very similar as done in Adobe Flash.<br />
<strong>Using the Video class</strong></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: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> url_rtmp<span style="color: #000000; font-weight: bold;">:</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: #990000;">&quot;rtmp://localhost/videoOnDemand&quot;</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;">private</span> <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> = <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;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> ns<span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=netstream%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstream.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStream</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;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> localVideo<span style="color: #000000; font-weight: bold;">:</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: #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><span style="color: #000000; font-weight:bold;color:#800000;">320</span>,<span style="color: #000000; font-weight:bold;color:#800000;">240</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: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> videoHolder<span style="color: #000000; font-weight: bold;">:</span>UIComponent;</div>
</li>
</ol>
</div>
</div>
</div>
<p>
Added the init function to be loaded as createComplete the application:</p>
<div class="igBar"><span id="lactionscript3-26"><a href="#" onclick="javascript:showPlainTxt('actionscript3-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-26">
<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;">public</span> <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: #004993;">connect</span><span style="color: #000000;">&#40;</span>url_rtmp<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: #004993;">call</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;">&nbsp; &nbsp; <span style="color: #009900;">//nc.objectEncoding = ObjectEncoding.AMF0; // for Adobe Flash Media Server 2.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; 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>,netStatusHandler<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; btnView.<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;">CLICK</span>,<span style="color: #004993;">play</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>
</ol>
</div>
</div>
</div>
<p>
We will have a function to check if the connection to Flash Media Server was successful.</p>
<div class="igBar"><span id="lactionscript3-27"><a href="#" onclick="javascript:showPlainTxt('actionscript3-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-27">
<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;">private</span> <span style="color: #339966; font-weight: bold;">function</span> netStatusHandler<span style="color: #000000;">&#40;</span>e<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: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">info</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Object</span></a> = e.<span style="color: #004993;">info</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><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;">switch</span><span style="color: #000000;">&#40;</span><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;">&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; <span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;NetConnection.Connect.Success&quot;</span><span style="color: #000000; font-weight: bold;">:</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; btnView.<span style="color: #004993;">enabled</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; btnView.label = <span style="color: #990000;">&quot;Play&quot;</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: #0033ff; font-weight: bold;">break</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: #0033ff; font-weight: bold;">case</span> <span style="color: #990000;">&quot;NetConnection.Connect.Closed&quot;</span><span style="color: #000000; font-weight: bold;">:</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: #004993;">trace</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;">&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">break</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;">&#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;"><span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Function callCamera be responsible for "building" the video (localvideos) to add it in the holder (instance of UIComponent) and only then adding the canvas (cv).</p>
<div class="igBar"><span id="lactionscript3-28"><a href="#" onclick="javascript:showPlainTxt('actionscript3-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-28">
<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;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">call</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; <span style="color: #6699cc; font-weight: bold;">var</span> holder<span style="color: #000000; font-weight: bold;">:</span>UIComponent = <span style="color: #0033ff; font-weight: bold;">new</span> UIComponent<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; localVideo = <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><span style="color: #000000; font-weight:bold;color:#800000;">320</span>,<span style="color: #000000; font-weight:bold;color:#800000;">240</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; holder.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>localVideo<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; cv.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>holder<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>
Now implementing the rest of the code.</p>
<div class="igBar"><span id="lactionscript3-29"><a href="#" onclick="javascript:showPlainTxt('actionscript3-29'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-29">
<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;">private</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">play</span><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; ns = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=netstream%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:netstream.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">NetStream</span></a><span style="color: #000000;">&#40;</span>nc<span style="color: #000000;">&#41;</span>; &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; ns.<span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;sneeze&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; localVideo.<span style="color: #004993;">attachNetStream</span><span style="color: #000000;">&#40;</span>ns<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; ns.<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>,netStatusHandlerNC<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; &nbsp; &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;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> netStatusHandlerNC<span style="color: #000000;">&#40;</span>e<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: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">info</span><span style="color: #000000; font-weight: bold;">:</span><a href="http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span style="color: #004993;">Object</span></a> = e.<span style="color: #004993;">info</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><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;"><span style="color: #000000;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Mxml code in this source:<br />
<strong><a href="http://www.leonardofranca.com.br/files/streamFlex.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>Using the component VideoDisplay</strong><br />
The implementation of this component created by <a href="http://www.peldi.com/">Giacomo (Peldi) Guilizzoni</a> after being included in the Flex Framework should be the most difficult of all <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> , Or I'll take the time to explain.</p>
<div class="igBar"><span id="lactionscript3-30"><a href="#" onclick="javascript:showPlainTxt('actionscript3-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-30">
<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: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&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: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application xmlns<span style="color: #000000; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #990000;">&quot;absolute&quot;</span><span style="color: #000000; font-weight: bold;">&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;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>VideoDisplay id=<span style="color: #990000;">&quot;vd&quot;</span> <span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;rtmp://localhost/videoondemand/streams/sneeze.flv&quot;</span> <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;10&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;10&quot;</span><span style="color: #000000; font-weight: bold;">/&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: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application<span style="color: #000000; font-weight: bold;">&gt;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
<strong><a href="http://www.leonardofranca.com.br/files/streamFlex.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>Using the FLVPlayback component in Flex</strong><br />
The component can also be FLVPlaybak using Adobe Flex, for this just follow the following steps:</p>
<ul>
<li>Go to "directory to install the Adobe Flash\Common\Configuration\Components\Video\".</li>
<li>FLVPlaybackAS3.swc Copy the file to your project in Flex Builder</li>
<li>Choose the skin (the installation directory of the Adobe Flash \ Common \ Configuration \ FLVPlayback Skins \ ActionScript 3.0) of your preference and save on your project.</li>
</ul>
<p>Now just instantiate the class instance and adds it to the stage:</p>
<div class="igBar"><span id="lactionscript3-31"><a href="#" onclick="javascript:showPlainTxt('actionscript3-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT3:</span>
<div id="actionscript3-31">
<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: #000000; font-weight: bold;">&lt;?</span>xml <span style="color: #004993;">version</span>=<span style="color: #990000;">&quot;1.0&quot;</span> encoding=<span style="color: #990000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&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: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application xmlns<span style="color: #000000; font-weight: bold;">:</span>mx=<span style="color: #990000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #990000;">&quot;absolute&quot;</span> creationComplete=<span style="color: #990000;">&quot;createVideo();&quot;</span><span style="color: #000000; font-weight: bold;">&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;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&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;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;!</span><span style="color: #000000;">&#91;</span>CDATA<span style="color: #000000;">&#91;</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: #0033ff; font-weight: bold;">import</span> mx.core.UIComponent;</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: #0033ff; font-weight: bold;">import</span> fl.video.FLVPlayback;</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: #0033ff; font-weight: bold;">import</span> fl.video.VideoScaleMode;</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; </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: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> createVideo<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; &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: #6699cc; font-weight: bold;">var</span> vid<span style="color: #000000; font-weight: bold;">:</span>FLVPlayback = <span style="color: #0033ff; font-weight: bold;">new</span> FLVPlayback<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; &nbsp; &nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> ui<span style="color: #000000; font-weight: bold;">:</span>UIComponent = <span style="color: #0033ff; font-weight: bold;">new</span> UIComponent<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; <span style="color: #009900;">//this.addChild(ui);</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; ui.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>vid<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; flvbp.<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>ui<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; vid.<span style="color: #004993;">width</span> = <span style="color: #000000; font-weight:bold;color:#800000;">320</span>;&nbsp; &nbsp; &nbsp; &nbsp; &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; vid.<span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;color:#800000;">240</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; vid.<span style="color: #004993;">source</span> = <span style="color: #990000;">&quot;rtmp://localhost/videoondemand/sneeze&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vid.skinBackgroundColor = 0x666666;</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; vid.skin = <span style="color: #990000;">&quot;skins/SkinUnderPlayStopSeekFullVol.swf&quot;</span>; <span style="color: #009900;">// salvar o skin no projeto</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; vid.<span style="color: #004993;">scaleMode</span> = VideoScaleMode.MAINTAIN_ASPECT_RATIO;</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; vid.skinAutoHide = <span style="color: #0033ff; font-weight: bold;">false</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: #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; <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000; font-weight: bold;">&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;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Script<span style="color: #000000; font-weight: bold;">&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;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;</span>mx<span style="color: #000000; font-weight: bold;">:</span>Canvas id=<span style="color: #990000;">&quot;flvbp&quot;</span> <span style="color: #004993;">x</span>=<span style="color: #990000;">&quot;0&quot;</span> <span style="color: #004993;">y</span>=<span style="color: #990000;">&quot;0&quot;</span> <span style="color: #000000; font-weight: bold;">/&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: #000000; font-weight: bold;">&lt;/</span>mx<span style="color: #000000; font-weight: bold;">:</span>Application<span style="color: #000000; font-weight: bold;">&gt;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>Stream with Flash Lite and Flash Media Server</strong><br />
Adobe Flash Lite 3.0 introduced some new ones, the ability to play video streamed directly with Adobe Flash Media Server. Joining this with the growing use of 3G and models of phones with Flash Lite (the work everyone has a Nokia N95, the less I <img src='http://www.leonardofranca.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) , We have an unprecedented range of possibilities in world.<br />
To schedule content for Flash Lite, we will use Adobe Flash CS4 and ActionScript 2.0 programming (still can not use ActionScript 3.0 or even Adobe Flex).</p>
<ul>
<li>Go to "Files-> New .." select Flash File (Mobile).</li>
<li>Then, will open the Adobe Device Central CS4, pick any phone model that supports Flash Lite 3.0, has no case, ask for the Device Central update your library.</li>
<li>We will do the same thing we did to play stream with Flash CS4, In the library, click on the "new Video. Give the name of instance "vd. In Type leave selecting "Video (ActionScript-controlled).</li>
<li>Create a layer to write our ActionScript.</li>
</ul>
<p>In the initial code, instantiate the class NetConnection to make the connection to Flash Media Server, if successful, begin the stream:</p>
<div class="igBar"><span id="lactionscript-32"><a href="#" onclick="javascript:showPlainTxt('actionscript-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ACTIONSCRIPT:</span>
<div id="actionscript-32">
<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: #808080; font-style: italic;">//#include &quot;BandwidthAS2.as&quot;</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: #000000; font-weight: bold;">var</span> rtmp:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;rtmp://localhost/webcam&quot;</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;">client_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;">client_nc.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span>rtmp<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;</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;">fscommand2<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;FullScreen&quot;</span>, <span style="color: #000000; font-weight: bold;">true</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;</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;">client_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> <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; <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: 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: #b1b100;">switch</span> <span style="color: #66cc66;">&#40;</span>info.<span style="color: #006600;">code</span><span style="color: #66cc66;">&#41;</span> <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; <span style="color: #b1b100;">case</span> <span style="color: #ff0000;">&quot;NetConnection.Connect.Success&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; &nbsp; &nbsp; &nbsp; doPlay<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; &nbsp; <span style="color: #b1b100;">break</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: #b1b100;">case</span> <span style="color: #ff0000;">&quot;NetConnection.Connect.Closed&quot;</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: #b1b100;">break</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: #66cc66;">&#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: #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;</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; font-weight: bold;">function</span> doPlay<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;"><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; in_ns = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetStream</span><span style="color: #66cc66;">&#40;</span>client_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; vd.<span style="color: #0066CC;">attachVideo</span><span style="color: #66cc66;">&#40;</span>in_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; in_ns.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;sneeze&quot;</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; in_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;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
One detail that we must look at the setting of publication, we put the option "Local Playback" to "Access network only", but the video will not run on the phone.<br />
<div id="attachment_496" class="wp-caption aligncenter" style="width: 197px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/setting_flash_lite_31.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/setting_flash_lite_31-187x300.jpg" alt="Configuração de publicação para p Flash Lite 3.1" title="setting_flash_lite_31" width="187" height="300" class="size-medium wp-image-496" /></a><p class="wp-caption-text">Configuração de publicação para o Flash Lite 3.1</p></div><br />
That done, we have the following result:<br />
<div id="attachment_508" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/stream_FlashLite_emulator.jpg"><img src="http://www.leonardofranca.com.br/wp-content/uploads/2009/08/stream_FlashLite_emulator-300x214.jpg" alt="Adobe Device Central" title="stream_FlashLite_emulator" width="300" height="214" class="size-medium wp-image-508" /></a><p class="wp-caption-text">Adobe Device Central</p></div><br />
Now it so save the swf and test the phone, you can also save it as Flash Lite 3.1 and use Adobe Mobile Package to create an installer .sis (to Simbiam) or .cab (for windows mobile) for your mobile.</p>
<p><strong><a href="http://www.leonardofranca.com.br/files/streamFlashLite31.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>Bonus 1</strong><br />
<strong>Stream with Adobe Dreamweaver CS4 and Flash Media Server</strong><br />
Ok ok, not quite but it is an alternative for those not familiar with Adobe Flash or Adobe Flex. Let it:</p>
<ul>
<li>Create a blank html page.</li>
<li>Go to "Insert-> Media-> FLV .</li>
<li>In Video type, select "Streaming Video".</li>
<li>On server load URI put rtmp://localhost/videoondemand/.</li>
<li>In stream name, put the name of the video, in our case will "sneeze".</li>
<li>Configure the remaining options to your liking, save the page and open in your browser (Dreamweaver will copy some files to your next page)</li>
</ul>
<p><strong>Bonus 2</strong><br />
Some useful tools for developing with Adobe Flash Media Server, including an update of the FLVPlayback with support for Dynamic Streaming and DVR.<br />
<a href="http://www.adobe.com/products/flashmediaserver/tool_downloads/">http://www.adobe.com/products/flashmediaserver/tool_downloads/</a></p>
<p><strong>Bonus 3</strong><br />
The file main.asc used in the example has an implementation to detect the speed of bandwidth used and we can create a feature to determine a video that best fits User Connection. This file appears in the examples that are located in the installation of Adobe Flash Media Server.</p>
<p><strong><a href="http://www.leonardofranca.com.br/files/fms.zip">DOWNLOAD SOURCE</a></strong></p>
<p><strong>Flash Media Server Developer Center</strong><br />
<a href="http://www.adobe.com/devnet/flashmediaserver/">http://www.adobe.com/devnet/flashmediaserver/</a></p>
<p>Recommended Books:<br />
<a href="http://www.amazon.com/gp/product/0240809475?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0240809475">Hands-On Guide to Flash Video: Web Video and Flash Media Server (Hands-On Guide Series)</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0240809475" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0470131136?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470131136">Flash Video for Professionals: Expert Techniques for Integrating Video on the Web</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0470131136" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0979500303?ie=UTF8&#038;tag=leonafranc-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0979500303">Introduction to Flash Media Server 2</a><img src="http://www.assoc-amazon.com/e/ir?t=leonafranc-20&#038;l=as2&#038;o=1&#038;a=0979500303" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_65ff9a38-c191-4128-aae5-a171ba61d28f"  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%2F65ff9a38-c191-4128-aae5-a171ba61d28f&#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%2F65ff9a38-c191-4128-aae5-a171ba61d28f&#038;Operation=GetDisplayTemplate" id="Player_65ff9a38-c191-4128-aae5-a171ba61d28f" quality="high" bgcolor="#ffffff" name="Player_65ff9a38-c191-4128-aae5-a171ba61d28f" 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%2F65ff9a38-c191-4128-aae5-a171ba61d28f&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
<p><strong>Translations:</strong><br />
<a href="http://www.leonardofranca.com.br/index.php/2009/08/21/stream-com-flex-ou-flash-ou-flash-lite-e-flash-media-server/">Português do Brasil</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardofranca.com/index.php/2009/08/22/stream-with-flex-or-flash-or-flash-lite-and-flash-media-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
