<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flash Platform Power!</title>
	<atom:link href="http://lucamezzalira.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lucamezzalira.com</link>
	<description>luca mezzalira&#039;s blog, a place to talk about Flash Platform</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:22:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lucamezzalira.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Flash Platform Power!</title>
		<link>http://lucamezzalira.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lucamezzalira.com/osd.xml" title="Flash Platform Power!" />
	<atom:link rel='hub' href='http://lucamezzalira.com/?pushpress=hub'/>
		<item>
		<title>Introducing Starling: book review</title>
		<link>http://lucamezzalira.com/2012/02/07/introducing-starling-book-review/</link>
		<comments>http://lucamezzalira.com/2012/02/07/introducing-starling-book-review/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 14:16:42 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[O'Reilly]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR 3]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[desktop apps]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[GPU acceleration]]></category>
		<category><![CDATA[Stage3D]]></category>
		<category><![CDATA[Starling Framework]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=531</guid>
		<description><![CDATA[Hi All, first of all I apologize with people that usually read this blog if I didn&#8217;t insert any new post since last year but I&#8217;m working a lots in these few months to open a new market opporunity for &#8230; <a href="http://lucamezzalira.com/2012/02/07/introducing-starling-book-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=531&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>first of all I apologize with people that usually read this blog if I didn&#8217;t insert any new post since last year but I&#8217;m working a lots in these few months to open a new market opporunity for my company out of Italy and I&#8217;m totally absorbed in this new activity, but in the meanwhile I&#8217;m studying during my spare time and I&#8217;d like to share with you my thoughts about &#8220;Introducing Starling&#8221;.</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2012/02/cat.gif"><img class="aligncenter size-full wp-image-532" title="cat" src="http://lucamezzalira.files.wordpress.com/2012/02/cat.gif?w=450" alt=""   /></a></p>
<p>This book is for any Flash Platform developer that is looking to create next generation of mobile and desktop apps (or games).<br />
It&#8217;s a book so practical that introduce you to the Starling framework, explaining how it works with simple examples of code that you can put in practice in a while.<br />
Thibault guides you showing each object presents in this framework, that is an abstraction of Stage3D API introduced with Flash Player 11 and AIR 3.<br />
With Starling you can aim better performance in your 2D applications thankfully the GPU acceleration added on Stage3D, with this book you can discover what there is behind and starting to develop with it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=531&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2012/02/07/introducing-starling-book-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2012/02/cat.gif" medium="image">
			<media:title type="html">cat</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Platform Galaxy: why choose Flash Platform</title>
		<link>http://lucamezzalira.com/2011/11/11/why-choose-flash-platform/</link>
		<comments>http://lucamezzalira.com/2011/11/11/why-choose-flash-platform/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 11:58:58 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[flash platform]]></category>
		<category><![CDATA[flash platform galaxy]]></category>
		<category><![CDATA[galaxy]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=522</guid>
		<description><![CDATA[In those days I&#8217;m reading a lots of mailing lists, forums, blogs and so on where Flash Platform supporters are so disappointed about the latest marketing movement of Adobe. In fact yesterday Adobe announced that they stop the development of &#8230; <a href="http://lucamezzalira.com/2011/11/11/why-choose-flash-platform/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=522&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In those days I&#8217;m reading a lots of mailing lists, forums, blogs and so on where Flash Platform supporters are so disappointed about the latest marketing movement of Adobe.</p>
<p>In fact yesterday Adobe announced that they stop the development of Flash Player on Mobile devices (on Desktop they are going ahead).<br />
The road is clear HTML 5 inside the browser and Flash Platform for RIAs, Games and out of browser in combination with Adobe AIR.</p>
<p style="text-align:left;">For me Adobe for the second time (the first one was during Adobe MAX) has totally mistaken how to communicate this news and obviously tech blogs bring this announcement like the end of Flash&#8230;<br />
Personally I don&#8217;t think that is the end of Flash but I think that <em>Flash is moving on a new position</em> in multimedia world probably out of browser.<br />
I&#8217;m an Adobe addicted, like you know, and in particular I&#8217;m a Flash Platform supporter, so I think that we have to move on and make something to spread the word about this foggy situation, guys, <strong>Flash Platform is ALIVE</strong>!<br />
To do this, I start making a pdf file called <strong><a href="http://lucamezzalira.files.wordpress.com/2011/11/fpstylesheet1.pdf" target="_blank">Flash Platform Galaxy</a></strong> that could help people to have an idea of <strong>what is Flash Platform and why choose it </strong>( I know, I&#8217;m not a graphic designer but I think it could be useful), if you want to add more informations or change something feel free to leave a comment at this post or drop me a line via email.<img class="aligncenter size-medium wp-image-523" title="flash platform galaxy" src="http://lucamezzalira.files.wordpress.com/2011/11/fpstylesheet.jpg?w=82&#038;h=298" alt="" width="82" height="298" /><br />
Let&#8217;s go guys, <em>we have a platform to save</em> <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/522/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/522/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/522/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=522&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/11/11/why-choose-flash-platform/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/11/fpstylesheet.jpg?w=82" medium="image">
			<media:title type="html">flash platform galaxy</media:title>
		</media:content>
	</item>
		<item>
		<title>It&#8217;s time for a new web design era&#8230; probably without Flash</title>
		<link>http://lucamezzalira.com/2011/10/04/its-time-for-a-new-web-era-probably-without-flash/</link>
		<comments>http://lucamezzalira.com/2011/10/04/its-time-for-a-new-web-era-probably-without-flash/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 20:23:02 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=511</guid>
		<description><![CDATA[I&#8217;m here in L.A. for Adobe MAX, before the beginning of the conference we were very excited about the 2 keynotes because we were waiting for amazing news about our favorite platform&#8230; but it didn&#8217;t happen, instead we find 2 &#8230; <a href="http://lucamezzalira.com/2011/10/04/its-time-for-a-new-web-era-probably-without-flash/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=511&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m here in L.A. for Adobe MAX, before the beginning of the conference we were very excited about the 2 keynotes because we were waiting for amazing news about our favorite platform&#8230; but it didn&#8217;t happen, instead we find 2 days very focused to designers (and it&#8217;s normal I guess) and to HTML 5, JQuery and CSS 3.</p>
<p>This is an important signal from Adobe, in 2 keynotes they mentioned Flex 2/3 times maybe, all the new stuff for Flash was focused on games and 3D and AIR had only 5 mins to show the new release and its new features.</p>
<p>So the message from Adobe is quite clear: <strong>&#8220;Use HTML 5 for the web and Flash for the game and out of browser&#8221;.<br />
</strong>This recommendation from Adobe would change online <a href="http://www.onlinewebdesigndegree.com/" target="_blank">web design classes</a> significantly in the future.</p>
<p>It seems crazy but it&#8217;s the truth&#8230; the same company that in the beginning of 2000 was scared from the little Macromedia and its best technology Flash, today substitued the player with a new one.</p>
<p>In latest years I took part of different Flash Platform projects, mainly desktop and mobile applications and I hoped to embrace the right direction with the Flash Platform, with this MAX I&#8217;m pretty sure  that I made the right decision.<br />
I&#8217;m disappointed that my favorite platform will be out of the browser but I&#8217;m more disappointed that Adobe is following the market instead of make it.</p>
<p>Today I can say that it&#8217;s time to move on and start again to study new &#8220;trendy&#8221; technology instead of a good and solid technology like Flash Platform.<br />
Could Flash be the new mobile and desktop technology? I really don&#8217;t know but I&#8217;m sure that this year a new milestone of the web was put by Adobe.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/511/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=511&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/10/04/its-time-for-a-new-web-era-probably-without-flash/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing with Google+ API and Actionscript 3</title>
		<link>http://lucamezzalira.com/2011/09/16/playingwithgoogleplusapiactionscript/</link>
		<comments>http://lucamezzalira.com/2011/09/16/playingwithgoogleplusapiactionscript/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 17:41:46 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=502</guid>
		<description><![CDATA[Yesterday I saw that Google has released Google+ API, so I started to played with in my favorite part of the day: the night! For now Google has published only public APIs that allow you to retrieve user&#8217;s informations and &#8230; <a href="http://lucamezzalira.com/2011/09/16/playingwithgoogleplusapiactionscript/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=502&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I saw that Google has released <a href="http://developers.google.com/+/api/">Google+ API</a>, so I started to played with in my favorite part of the day: the night!</p>
<p>For now Google has published only <a href="http://googleplusplatform.blogspot.com/2011/09/getting-started-on-google-api.html">public APIs</a> that allow you to retrieve user&#8217;s informations and his activities list, all API are made in <a href="http://en.wikipedia.org/wiki/Representational_state_transfer" target="_blank">RESTful</a> and JSON that are so easy to add in your project.<br />
When Google will release next APIs, I hope soon, you can consume them with an oAuth 2.0 authentication, like Facebook.<br />
I made a simple example to retrieve data from my Google+ profile in Actionscript for Android, you can download the <a href="http://www.flairpy.com/DemoPlusService.zip" target="_blank">source files directly from here</a>.</p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:center;"><a href="http://lucamezzalira.files.wordpress.com/2011/09/googleplus.jpg" target="_blank"><img class="aligncenter size-medium wp-image-503" title="googleplus" src="http://lucamezzalira.files.wordpress.com/2011/09/googleplus.jpg?w=500&#038;h=340" alt="" width="500" height="340" /></a></p>
<p style="text-align:center;">
<p style="text-align:left;">If you want to play with Google+ API, first of all you have to request your Google+ API key; to do that go to <a href="https://code.google.com/apis/console" target="_blank">Google API console</a> and activate Google+ service, then in the details page you can find your key.</p>
<p style="text-align:center;"><a href="http://lucamezzalira.files.wordpress.com/2011/09/screen-shot-2011-09-16-at-7-12-44-pm.png"><img class="aligncenter size-medium wp-image-504" title="Screen shot 2011-09-16 at 7.12.44 PM" src="http://lucamezzalira.files.wordpress.com/2011/09/screen-shot-2011-09-16-at-7-12-44-pm.png?w=500&#038;h=412" alt="" width="500" height="412" /></a></p>
<p style="text-align:left;">Google+ RESTful services get us a JSON response, to read it in your Flash/Flex application remember that you need as3corelib that have the JSON deserializer, for example you can push in a generic Object all data retrieved from Google+ service or if you prefer you could create a Value Object that it could be more useful.<br />
In this case I decode directly in a generic Object, like you can see in this code snippet:</p>
<pre>var data:Object= JSON.decode(dataToRead, true);</pre>
<p>then now you can easily access to informations:</p>
<pre>var icon:String = data.image.url;
var name:String = data.displayName;
var tagline:String = data.tagline;
var description:String = data.aboutMe;</pre>
<p>Another easy feature that you can add in your Google+ application is a static image of the map, like in your web page, using <a href="http://code.google.com/intl/it/apis/maps/documentation/staticmaps/" target="_blank">Google Maps Static API</a>.<br />
You can easily make a query to Google Maps passing in GET params like: the dimension of image, the location and the zoom; you can also add more params that you find in the docs of <a href="http://code.google.com/intl/it/apis/maps/documentation/staticmaps/#quick_example" target="_blank">Google Maps Static API</a>.<br />
Here a code sample to add this feature in your Flash application, in those line I request for an image with width 480px, height 200px, with roadmap skin and with a zoom of 15x:</p>
<pre>var mapLoader:Loader = new Loader();
//city is a variable with the name of the place that you have to retrieve.
mapLoader.load(new URLRequest("http://maps.googleapis.com/maps/api/staticmap?center="
+city+"&amp;zoom=15&amp;size=480x200&amp;maptype=roadmap&amp;sensor=true"));
mapLoader.y = this.stage.stageHeight - 200;
addChild(mapLoader);</pre>
<p>Like you can see work with those APIs are pretty easy, so now we have to wait for final release and then we can start to create our Google+ integration with the Flash Platform.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/502/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=502&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/09/16/playingwithgoogleplusapiactionscript/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/09/googleplus.jpg?w=300" medium="image">
			<media:title type="html">googleplus</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/09/screen-shot-2011-09-16-at-7-12-44-pm.png?w=300" medium="image">
			<media:title type="html">Screen shot 2011-09-16 at 7.12.44 PM</media:title>
		</media:content>
	</item>
		<item>
		<title>Tricks for tween on mobile devices with Flash Platform</title>
		<link>http://lucamezzalira.com/2011/08/04/tricks-for-tween-on-mobile-devices-with-flash-platform/</link>
		<comments>http://lucamezzalira.com/2011/08/04/tricks-for-tween-on-mobile-devices-with-flash-platform/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 20:46:19 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Touch screen]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=495</guid>
		<description><![CDATA[In this quick post I&#8217;d like to share with you my experience about Tween on Flash Platform projects delivered on a mobile devices. I started work on mobile since Flash Lite 1.1 so I grew up with mobile, I lived &#8230; <a href="http://lucamezzalira.com/2011/08/04/tricks-for-tween-on-mobile-devices-with-flash-platform/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=495&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this quick post I&#8217;d like to share with you my experience about Tween on Flash Platform projects delivered on a mobile devices.<br />
I started work on mobile since Flash Lite 1.1 so I grew up with mobile, I lived all the Flash mobile evolution and now, on tablet and smartphone, I had some good tricks to share with you, I really hope that those tips could help you during your developer life.<br />
OK, let&#8217;s start:</p>
<ul>
<li><em>Use quality property of stage</em><br />
This is a really good technique to use when you have to improve performance of your project, when you need to make a fluid tween before launch it, set stage quality to low and when tween will finish set stage quality to high or best.<br />
Avoid to use this technique when you have vectors (textfield for example) on the stage because you could have a worst result.</li>
<li><em>Use cacheAsBitmap and cacheAsBitmapMatrix</em><br />
If you have vector object that you&#8217;d like to animate in your project remember to cache them and then animate; remember also to set your application with GPU acceleration and you can see a really good performance with this technique.<br />
Avoid to cache objects that you need to remove from display list, it will be so expensive for your memory.</li>
<li><em>System.gc() works!</em><br />
I tried in few sample to use it on Android and I saw a good result, so the &#8220;old&#8221; tip to call System.gc() twice in a try/catch statement works on mobile device too (only on AIR apps)</li>
<li><em>Take care with multiple animations on iPad and iPhone</em><br />
On iOS devices we don&#8217;t have AIR runtime so LLVM translate our AIR project for us in Native Binary so it could help if you move few objects per time in particular if you have big objects to move like a background or something like that</li>
<li><em>Greensocks tweens are the best</em><br />
I tried tweener and other tween libraries for AS3, but the best one for me are the Greensock tween library, in particular on iOS devices.</li>
<li>Last but not least<em>, remember to test your animation on the device because you could see &#8220;funny&#8221; results</em><br />
Sometimes happen that on your computer everything works well but when you port your content on a tablet or smartphone everything works not so well.<br />
Before hurt your head, remember to test a lots of times your mobile content on the device, it could save your projects!</li>
</ul>
<div>Finally I suggest to take a look at <a href="http://www.adobe.com/devnet/devices.html" target="_blank">dev center mobile development zone</a> of Adobe site because you can find many tutorials and helpful tips on mobile development.<br />
That&#8217;s all folks for now, I hope you enjoy those tips.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/495/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/495/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/495/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=495&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/08/04/tricks-for-tween-on-mobile-devices-with-flash-platform/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
		<item>
		<title>Multicast UDP socket in Adobe AIR with Python</title>
		<link>http://lucamezzalira.com/2011/07/29/multicast-udp-socket-in-adobe-air-with-python/</link>
		<comments>http://lucamezzalira.com/2011/07/29/multicast-udp-socket-in-adobe-air-with-python/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 10:46:16 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=485</guid>
		<description><![CDATA[In my last project I solved a big issue that I needed to receive notification from an hardware via a Multicast UDP socket. If you want to know more about Multicast and Unicast in Flash Platform I really suggest to &#8230; <a href="http://lucamezzalira.com/2011/07/29/multicast-udp-socket-in-adobe-air-with-python/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=485&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my last project I solved a big issue that I needed to receive notification from an hardware via a Multicast UDP socket.<br />
If you want to know more about Multicast and Unicast in Flash Platform I really suggest to read <a title="Unicast vs Multicast" href="http://www.flashrealtime.com/multicast-explained-flash-101-p2p/" target="_blank">Flashrealtime blog</a>.<br />
Like you know the Flash Platform can use multicast with RTMFP protocol so you can use it Flash to Flash or Flash to Flash Media Server but not Flash to hardware for example.</p>
<p>In my case I needed a Multicast UDP socket in a local application that communicate with an hardware that was my server, so I thought to realize a Python application for Mac OS X and Windows that could help me to solve this problem.<br />
Python is my second favorite programming language after ActionScript (obviously) and this time Python saves me to accomplish my project.<br />
I want to start with Python side, my goal is to connect to a multicast socket and get all data and then send them to a unicast UDP socket server that we will create in Adobe AIR in next example.</p>
<pre>#!/usr/bin/env python
# encoding: utf-8

import socket, select

ANY = '0.0.0.0'
MCAST_ADDR = '239.0.1.1'
MCAST_PORT = 10300

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
sock.bind((ANY,MCAST_PORT))
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 255)
status = sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
socket.inet_aton(MCAST_ADDR) + socket.inet_aton(ANY));

sock.setblocking(0)
print 'socket UDP multicast ready'

udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM);

while 1:
	ins, outs, errs = select.select( [ sock ] , [], [], 1.0)
	try:
	    data, addr = sock.recvfrom(1024)
	except socket.error, e:
	    pass
	else:
	    print data
	    udp.sendto(data, (socket.gethostbyname('127.0.0.1'), 10303))

socket.close()</pre>
<p>First few lines we define the multicast socket server ip (that in my case is pointing to the hardware) and the socket port to communicate with.<br />
Then I create the UDP multicast socket and the UDP unicast socket (udp var); in the while loop I set the socket timeout and if I receive data trough the multicast socket I send everything to unicast one.<br />
After that to create an application without any dependency in Windows or Mac OS X, you need to use a couple of Python libraries called <a href="http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html" target="_blank">py2app</a> and <a href="http://www.py2exe.org/" target="_blank">py2exe</a>.<br />
Both allow you to create an executable file from your Python script for mac or win without any dependencies, in Windows side you have only to remember which kind of Python dll you have to incapsulate in your AIR application but we take a look at that in a while.<br />
To create the executable file you have to create a setup script in Python for both operating systems, I suggest to create something like that:</p>
<p><strong>FOR WINDOWS:</strong></p>
<pre>from distutils.core import setup
import py2exe,sys,os

origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
        if os.path.basename(pathname).lower() in ("msvcp71.dll", "dwmapi.dll"):
                return 0
        return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL

setup(windows=['myPythonScript.py'])</pre>
<p><strong>FOR MAC:</strong></p>
<pre>from setuptools import setup

APP = ['myPythonScript.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)</pre>
<p>Then if you want to create your executable files you have only need to launch the command on command prompt or terminal (you can find more informations on how to customize those setup scripts in each library&#8217;s website):<br />
<strong>FOR WINDOWS</strong>:</p>
<pre>python setup.py py2exe</pre>
<p><strong>FOR MAC</strong>:</p>
<pre>python setup.py py2app</pre>
<p>Now we can start with the AIR part, like you know with AIR 2 you can work with Native Process and this is the case to use them:</p>
<pre>const WIN_PATH:String = "win/socket.exe";
const OSX_PATH:String = "socket.app/Contents/MacOS/socket";

var nativep:NativeProcessStartupInfo = new NativeProcessStartupInfo();

var finalPath:String;

var f:File
if(Capabilities.os.substr(0, 3) == "Win"){
   finalPath = WIN_PATH
}else{
   finalPath = OSX_PATH
}

f = File.applicationDirectory.resolvePath(finalPath);

nativep.executable = f;

var process:NativeProcess = new NativeProcess();

process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
process.addEventListener(NativeProcessExitEvent.EXIT, onExit);
process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOError);
process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOError);

process.start(nativep);

var udp:DatagramSocket = new DatagramSocket();
udp.addEventListener(DatagramSocketDataEvent.DATA, getData);
udp.bind(10303);
udp.receive();

function getData(e:DatagramSocketDataEvent):void{
	trace("&gt;&gt;&gt;&gt;&gt;" + e.data.readUTFBytes( e.data.bytesAvailable ))
}

function onOutputData(event:ProgressEvent):void{
   trace(process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable));
}

function onErrorData(event:ProgressEvent):void{
    trace(process.standardError.readUTFBytes(process.standardError.bytesAvailable));
}

function onExit(event:NativeProcessExitEvent):void{
   trace(event.exitCode);
}

function onIOError(event:IOErrorEvent):void{
  trace(event.toString());
}</pre>
<p>In this simple script I&#8217;m choosing the right executable file for the operating system where my AIR application is working on and then I launch the native process to start the multicast socket.<br />
Finally I listen for the unicast socket and I trace on the output panel the messages that I receive from the hardware.<br />
I think this is an interesting way to extend Adobe AIR with Python that open new possibilities on the desktop side, think for example to create a Python bluetooth extension for Adobe AIR, it could be so interesting add this feature to AIR apps isn&#8217;t it?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/485/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=485&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/07/29/multicast-udp-socket-in-adobe-air-with-python/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
		<item>
		<title>Presentation Model design pattern: multiple screen solution &#8211; part 1</title>
		<link>http://lucamezzalira.com/2011/06/13/presentation-model-design-pattern/</link>
		<comments>http://lucamezzalira.com/2011/06/13/presentation-model-design-pattern/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 01:58:18 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[actionscript design pattern]]></category>
		<category><![CDATA[Android AIR]]></category>
		<category><![CDATA[design pattern]]></category>
		<category><![CDATA[iOS AIR]]></category>
		<category><![CDATA[martin fowler]]></category>
		<category><![CDATA[mobile development]]></category>
		<category><![CDATA[multiple screen]]></category>
		<category><![CDATA[Playbook AIR]]></category>
		<category><![CDATA[presentation model]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=474</guid>
		<description><![CDATA[Today I&#8217;d like to talk about Presentation Model design pattern because it&#8217;ll be so useful for anyone that is working on multiple screen project with Flash or Flex. In latest months we lived in phrenetic mobile world where we have &#8230; <a href="http://lucamezzalira.com/2011/06/13/presentation-model-design-pattern/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=474&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;d like to talk about Presentation Model design pattern because it&#8217;ll be so useful for anyone that is working on multiple screen project with Flash or Flex.<br />
In latest months we lived in phrenetic mobile world where we have tons of new and powerful devices on the market with different screen sizes, different hardware and so on, on the other hand we have clients that are looking for new business opportunities and they are seeking a way to spend less but earn more.<br />
So, one way to solve those problems could be find a way to deploy with the same technology in different devices (tablets, smartphones, computers&#8230;) saving time with great results!<br />
That&#8217;s not a dream, it could be made with knowledge, architecture and a good developer or a team!</p>
<h3><strong>Our goal</strong></h3>
<p>For a developer find a way to have a good project architecture to maintain it&#8217;s so important, usually when you start a project you try to define the parts that could be re-usable in different part of the same project or in different project too.<br />
So our aim is find a way to write less code but it will cover the project needs and that could be portable in different screens / operating systems easily.</p>
<h3><strong>What is Presentation Model design pattern?</strong></h3>
<p>My mentor <a href="http://martinfowler.com/aboutMe.html" target="_blank">Martin Fowler</a> describes it with those words: &#8220;<em>Represent the state and behavior of the presentation independently of the GUI controls used in the interface</em>&#8221;  (here the <a href="http://martinfowler.com/eaaDev/PresentationModel.html" target="_blank">full article</a> of Martin Fowler).<br />
In fact with this pattern we divide UI (components, movieclips, sprites&#8230;) from their behaviors; each view will have one and only that one presentation model and only the presentation model will interact with the whole architecture (like with model or proxy&#8230;).<br />
Probably with this image you can easily understand better this concept (from Martin Fowler website):</p>
<p><img class="aligncenter" title="Presentation Model UML Sample" src="http://martinfowler.com/eaaDev/presentationModel/cutTitleClass.gif" alt="" width="469" height="229" /></p>
<p>Like you can see we have 3 class, AlbumTitle that is a view with a textfield, AlbumPresentationModel that is the presentation model of AlbumTitle and it has the copy of the view but storing datas inside and finally the main model Album where we have the data that could be used for the whole application.<br />
There aren&#8217;t any connection trough the views and the application model because only the presentation model has access to the whole project, so the view is only a bunch of components and custom graphics, this it means that if you have to change UI on a mobile project for a different device, changing the views and anything else, you will have done your job.<br />
In fact with this easy technique you perfectly solve our problem and you should create the same content for different devices changing only the views.<br />
Probably your application in different devices will have the same functionalities but with a different UI dedicated for the OS is running on.<br />
With this sample design pattern you&#8217;ll have a solid infrastructure that will solve the big problem to port the same application in different screen sizes.<br />
So in next paragraph we can take a look on how to organize our files project.</p>
<h3><strong>Manage a project for different screen sizes</strong></h3>
<p>Another important thing before starts the project is understand how to organize the project for different OS, in fact if you work with Adobe AIR on Android you&#8217;ll have only the XML descriptor with Android permissions described in this file, on Playbook you&#8217;ll have another XML file dedicated to this platform and so on.<br />
So, my suggestion is to organize the project in different projects that work together.<br />
In this image you can see how I organize it for our final scope, I&#8217;ve a common project (Runtime Shared Libraries in this case but you can use also an Actionscript or AIR project if you work with Flash for example) where I&#8217;ll put all classes that are common for different target, so in my case all the presentation models, main models, utils classes, my notification bus and views that are common for different projects like components for example.</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/06/screen-shot-2011-06-13-at-3-25-15-am.png"><img class="aligncenter size-medium wp-image-475" title="common project" src="http://lucamezzalira.files.wordpress.com/2011/06/screen-shot-2011-06-13-at-3-25-15-am.png?w=227&#038;h=300" alt="" width="227" height="300" /></a></p>
<p>In the target device projects I add only what I need for that device, in this case only a couple of views and assets but in big projects could be more stuff that those one:</p>
<p style="text-align:center;"><a href="http://lucamezzalira.files.wordpress.com/2011/06/organization.jpg"><img class="size-medium wp-image-480 aligncenter" title="organization target devices" src="http://lucamezzalira.files.wordpress.com/2011/06/organization.jpg?w=300&#038;h=83" alt="" width="300" height="83" /></a></p>
<p>When you have a specific behavior only for a target device, you can easily extends the common presentation model and add new functionalities or create a side class that you&#8217;ll add in the specific view.<br />
So with this infrastructure you can solve bugs and change stuff directly on the common project and all the platforms will be ready to package the project and upload to their store. That&#8217;s cool, isn&#8217;t it?</p>
<h3><strong>Summary</strong></h3>
<p>So in this post I hope to give you some ideas on how to solve the big problem to create a common base code that could be useful for different purpose.<br />
In next post I&#8217;ll show you how to implement it in practice, for now if you have any feedback or suggestions for the second part of this article please add a comment to this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=474&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/06/13/presentation-model-design-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://martinfowler.com/eaaDev/presentationModel/cutTitleClass.gif" medium="image">
			<media:title type="html">Presentation Model UML Sample</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/06/screen-shot-2011-06-13-at-3-25-15-am.png?w=227" medium="image">
			<media:title type="html">common project</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/06/organization.jpg?w=300" medium="image">
			<media:title type="html">organization target devices</media:title>
		</media:content>
	</item>
		<item>
		<title>New AT&amp;T Research Reveals Clues to Smarter App Development</title>
		<link>http://lucamezzalira.com/2011/06/09/new-att-research-reveals-clues-to-smarter-app-development/</link>
		<comments>http://lucamezzalira.com/2011/06/09/new-att-research-reveals-clues-to-smarter-app-development/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 17:50:23 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=469</guid>
		<description><![CDATA[This time I&#8217;d like to publish a post written by Doug Sillars member of the AT&#38;T Developer Program team, he asked me to publish it on my blog so here we are, great job Doug! Nothing chases away users (or &#8230; <a href="http://lucamezzalira.com/2011/06/09/new-att-research-reveals-clues-to-smarter-app-development/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=469&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This time I&#8217;d like to publish a post written by Doug Sillars member of the AT&amp;T Developer Program team, he asked me to publish it on my blog so here we are, great job Doug!</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/06/image001.png"><img class="aligncenter size-full wp-image-470" title="image001" src="http://lucamezzalira.files.wordpress.com/2011/06/image001.png?w=450" alt=""   /></a></p>
<p>Nothing chases away users (or invites bad reviews!) like an app that is slow or drains battery life too quickly. New research from AT&amp;T and University of Michigan offers insight into how applications can be modified to prevent these issues from occurring. Historically, wireless optimization best practices have focused on how to optimize content for smaller screens and slower processors. In this article, the researchers describe how mobile wireless networks are different than wired networks, and how simple changes to your app can work WITH the network to improve your application’s efficiency.</p>
<p>What is truly fascinating about this study is that developers are given a peek at network architecture and lower-level protocols that are usually hidden from them. The researchers describe in detail the connection latencies and state machines that exist in wireless networks, and how much longer these timeframes are than in traditional networks. The main takeaway for developers is that all connections open and close on the order of seconds (as compared to milliseconds in the wired web). These latencies make content downloads appear slow, and can drain the battery quickly.<br />
The researchers point out that it is more efficient to utilize fewer connections to send more data per connection. For example: 5 connections of 1 KB each utilize 90 seconds of radio, while one 5 KB transfer uses 19 seconds (a 79% decrease in battery usage for the same amount of data!).</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/06/image002.jpg"><img class="aligncenter size-medium wp-image-471" title="image002" src="http://lucamezzalira.files.wordpress.com/2011/06/image002.jpg?w=300&#038;h=99" alt="" width="300" height="99" /></a></p>
<p>Each network connection causes a power drain to the battery, and can make your application appear slow to the end user. By sending more data per connection (and using fewer total connections), you can drastically improve your application’s performance. The researchers provide the example of a news application that downloads data on demand (e.g., images are downloaded when the user scrolls to them). They found that prefetching images (sending many files in anticipation of future use) can reduce power consumption by 15-18%. Since the images are downloaded in advance, they are available for display immediately, and your application appears faster. However, the researchers are quick to point out that prefetching data is a delicate balance, as downloading content that is never used also wastes the battery (and can cause your users to exceed their monthly data caps).</p>
<p>In the case of a popular music streaming service, periodic audience measurements were draining battery life, causing the app to use more than 40% of its power to transmit just 0.2% of its data. By lengthening the time between these measurements, it is possible to greatly reduce the battery drain, and allow users to listen to more music (and at the same time view more revenue-producing advertisements)!<br />
AT&amp;T has begun working with developers of popular applications (like Pandora and Facebook) to enthusiastic responses. The biggest response has been that the solutions to optimize wireless applications are straightforward and benefit both the developer and the end user!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/469/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=469&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/06/09/new-att-research-reveals-clues-to-smarter-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/06/image001.png" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/06/image002.jpg?w=300" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Camp Milan review</title>
		<link>http://lucamezzalira.com/2011/05/21/flash-camp-milan-review/</link>
		<comments>http://lucamezzalira.com/2011/05/21/flash-camp-milan-review/#comments</comments>
		<pubDate>Sat, 21 May 2011 08:01:05 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Touch screen]]></category>
		<category><![CDATA[actionscript 3 design patterns]]></category>
		<category><![CDATA[design patterns]]></category>
		<category><![CDATA[flash camp]]></category>
		<category><![CDATA[flash mobile]]></category>
		<category><![CDATA[observer]]></category>
		<category><![CDATA[presentation model]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=458</guid>
		<description><![CDATA[Yesterday in Milan we had the Flash Camp about Mobile topics and then we had the Flash Camp Party at NH Hotel&#8230; really wonderful time. Like you know, in Italy it&#8217;s not so easy to organize those kind of events &#8230; <a href="http://lucamezzalira.com/2011/05/21/flash-camp-milan-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=458&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday in Milan we had the Flash Camp about Mobile topics and then we had the Flash Camp Party at NH Hotel&#8230; really wonderful time.<br />
Like you know, in Italy it&#8217;s not so easy to organize those kind of events because usually people don&#8217;t move to another city like other foreign countries but Flash Camp had a great success.<br />
This camp was organized in the same place of WhyMCA the mobile revolution, an italian conference focused on mobile topics.<br />
We had 50/60 people per session and I&#8217;m glad to say that my session had 80 people so I&#8217;m happy about this little success.<br />
All the sessions surfed in deep about CG, design patterns, video optimization for mobile, flex on mobile and so on, so I was really excited to take part in this event.<br />
My session was about Design Pattern for Mobile, I talked about 3 design patterns: Singleton, Observer and Presentation Model.<br />
With a couple of samples (that you can download from this <a href="http://www.flairpy.com/flashcampMilan.zip" target="_blank">link</a>) and few slides I made an application that run with the same base code on tablet and smartphone; this is an hot topic now on mobile world in particular on Flash Platform side.<br />
<iframe src='http://www.slideshare.net/slideshow/embed_code/8044969' width='584' height='479'></iframe><br />
In next few weeks I&#8217;ll make a post about Presentation Model to share my thoughts about this argument and how to use it in your project , but if you want to start with this topic, take a look at this great post on <a href="http://riarockstars.com/2011/03/16/presentation-model-and-multiple-screens-part-1/" target="_blank">RIArockstars</a>.</p>
<p>Finally I&#8217;d like to thanks the Flash Mind, Adobe Flash Platform User Group Italy, to give me this opportunity, WhyMCA staff for the amazing organization, other speakers of Flash Camp for great time spent together and people that came to talk with us during the Flash Camp and to the beer party too.<br />
I leave also a link to some <a href="http://www.flickr.com/photos/lucamezzalira/sets/72157626766575326/" target="_blank">photos</a> took during Flash Camp in Milan.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/458/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/458/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/458/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=458&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/05/21/flash-camp-milan-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Camp in Milan</title>
		<link>http://lucamezzalira.com/2011/05/02/flash-camp-in-milan/</link>
		<comments>http://lucamezzalira.com/2011/05/02/flash-camp-in-milan/#comments</comments>
		<pubDate>Mon, 02 May 2011 08:57:05 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[flash catalyst]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=454</guid>
		<description><![CDATA[I&#8217;m glad to announce an interesting Flash Camp that will take place in Milan this month at 20 and 21. All the topics of the Flash Camp will be focused on mobile side, so Flex for mobile device, iOS, Android &#8230; <a href="http://lucamezzalira.com/2011/05/02/flash-camp-in-milan/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=454&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m glad to announce an interesting Flash Camp that will take place in Milan this month at 20 and 21.</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/05/flash_camp.png"><img class="aligncenter size-medium wp-image-456" title="flash_camp" src="http://lucamezzalira.files.wordpress.com/2011/05/flash_camp.png?w=300&#038;h=66" alt="" width="300" height="66" /></a></p>
<p>All the topics of the Flash Camp will be focused on mobile side, so Flex for mobile device, iOS, Android and Playbook development, code technique for mobile applications, optimizing video content for mobile, design pattern and architecture for mobile project.<br />
Flash camp will be hosted by the <a href="http://www.whymca.org/">whymca</a> the mobile developer conference, that for the second year will show the mobile opportunities not only with Flash Platform but with any technology could be use for mobile purpose.<br />
The event will be in Milan in Milanofiori (Assago), you can find more information on <a href="http://www.whymca.org/" target="_blank">whymca web site</a>.</p>
<p>Back on the Flash Camp side, speakers will be:</p>
<ul>
<li><a href="http://corlan.org/" target="_blank">Mihai Corlan</a> &#8211; Adobe Evangelist</li>
<li><a href="http://sonnati.wordpress.com/" target="_blank">Fabio Sonnati</a></li>
<li><a href="http://www.flashfuck.it/" target="_blank">Piergiorgio Niero</a></li>
<li><a href="http://www.interpreting-tech.com/bemobile/" target="_blank">Andrea Trento</a></li>
<li>Luca Mezzalira</li>
</ul>
<div>Mihai will talk about Flex on mobile devices and how to deploy a content on multiple devices, in the afternoon he has a live coding session where show how to create a mobile application with Actionscript 3.<br />
My good friend Fabio will talk about video encoding optimization for mobile devices, Andrea will show how to create a game cross-platform with Flash Platform and Piergiorgio will give us great suggestions on how to optimize our code and improve the performance of mobile solutions.</div>
<div>Finally me, I&#8217;ll talk on how to organize a multiple screen development with Design Pattern and Architecture to re-use code and have great performance on mobile solutions.</div>
<div>For a limit number of people we are organizing a post event for the evening so try to come from the beginning of the Flash Camp and you&#8217;ll receive more information about it or keep update reading this blog.<br />
See you there Flashers!!!</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/454/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/454/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/454/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=454&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/05/02/flash-camp-in-milan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/05/flash_camp.png?w=300" medium="image">
			<media:title type="html">flash_camp</media:title>
		</media:content>
	</item>
		<item>
		<title>Playbook development with Flash Platform</title>
		<link>http://lucamezzalira.com/2011/03/14/playbook-development-with-flash-platform/</link>
		<comments>http://lucamezzalira.com/2011/03/14/playbook-development-with-flash-platform/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 19:24:27 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[adobe air]]></category>
		<category><![CDATA[AIR mobile]]></category>
		<category><![CDATA[air playbook]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[flash development]]></category>
		<category><![CDATA[flash mobile]]></category>
		<category><![CDATA[flash playbook]]></category>
		<category><![CDATA[flex playbook]]></category>
		<category><![CDATA[mihai corlan]]></category>
		<category><![CDATA[mobile optimization]]></category>
		<category><![CDATA[playbook]]></category>
		<category><![CDATA[qnx]]></category>
		<category><![CDATA[rim]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=413</guid>
		<description><![CDATA[First of all a big THANKS to Mihai Corlan, Adobe Evangelist, that is helping me during this &#8220;journey&#8221;. Everything start last year during MAX when I saw for the first time the new BlackBerry tablet: the Playbook It looked so &#8230; <a href="http://lucamezzalira.com/2011/03/14/playbook-development-with-flash-platform/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=413&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First of all a big THANKS to <a title="Mihai Corlan blog" href="http://corlan.org/" target="_blank">Mihai Corlan</a>, Adobe Evangelist, that is helping me during this &#8220;journey&#8221;.<br />
Everything start last year during MAX when I saw for the first time the new BlackBerry tablet: the Playbook <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
It looked so nice, I thought that it was really amazing.<br />
So after few months I decide to try&#8230; and now, I finally can announce that with Mihai we are working on a book on Playbook application development with Flash Platform!</p>
<p>It&#8217;ll be an hard job but I want to do it, I hope to receive useful suggestions and questions about this topic and believe me that I&#8217;ll be free to talk with you about that.<br />
It will be a book made by developers for developers so I hope that you&#8217;ll enjoy it when will be released this september (more or less).<br />
This book will cover following topics:</p>
<ul>
<li>Build, port and optimize apps for the BlackBerry PlayBook tablet device</li>
<li>Work with the PlayBook OS APIs, ActionScript, Flex, AIR and other Flash tools/APIs for PlayBook</li>
<li>Build a simple app and consuming data</li>
<li>Create multimedia and gaming apps for the BlackBerry PlayBook</li>
<li>Debug and optimize your PlayBook app</li>
</ul>
<p>For any news about this book and about Flash Platform development follow this blog and my twitter or facebook account.</p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/03/playbookflash.jpg"><img class="aligncenter size-full wp-image-414" title="Playbook apps development with Flash Platform" src="http://lucamezzalira.files.wordpress.com/2011/03/playbookflash.jpg?w=450" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=413&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/03/14/playbook-development-with-flash-platform/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/03/playbookflash.jpg" medium="image">
			<media:title type="html">Playbook apps development with Flash Platform</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe CookBooks Reader for Android</title>
		<link>http://lucamezzalira.com/2011/02/24/adobe-cookbooks-reader-for-android/</link>
		<comments>http://lucamezzalira.com/2011/02/24/adobe-cookbooks-reader-for-android/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 14:27:17 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Resource]]></category>
		<category><![CDATA[adobe air 2.6]]></category>
		<category><![CDATA[adobe cookbook]]></category>
		<category><![CDATA[air cookbook]]></category>
		<category><![CDATA[android cookbook]]></category>
		<category><![CDATA[flash cookbook]]></category>
		<category><![CDATA[Flash developer]]></category>
		<category><![CDATA[flash platform]]></category>
		<category><![CDATA[flash platform developer]]></category>
		<category><![CDATA[flex 4]]></category>
		<category><![CDATA[flex cookbook]]></category>
		<category><![CDATA[Flex developer]]></category>
		<category><![CDATA[mobile cookbook]]></category>
		<category><![CDATA[mobile developer]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=409</guid>
		<description><![CDATA[Hi everyone, I&#8217;ve just released on Android market the CookBooks Reader application where you can read all new recipes about Flash Platform technologies. It&#8217;s FREE and it&#8217;s based on Flex 4 and Adobe AIR so remember to download it before &#8230; <a href="http://lucamezzalira.com/2011/02/24/adobe-cookbooks-reader-for-android/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=409&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>I&#8217;ve just released on Android market the <a title="CookBooks Reader on Android Marketplace" href="https://market.android.com/details?id=air.org.mart3.acp.cookbooksReader&amp;feature=search_result" target="_blank">CookBooks Reader</a> application where you can read all new recipes about Flash Platform technologies.<br />
It&#8217;s FREE and it&#8217;s based on Flex 4 and <a title="Adobe AIR for Android" href="https://market.android.com/details?id=com.adobe.air&amp;feature=search_result" target="_blank">Adobe AIR</a> so remember to download it before download CookBooks Reader.</p>
<p>If you try it, feel free to leave here comments with new features or suggestions&#8230;  I&#8217;m looking for you! Let&#8217;s go Flash Platform geeks! <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=409&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/02/24/adobe-cookbooks-reader-for-android/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex on mobile: first impressions&#8230;</title>
		<link>http://lucamezzalira.com/2011/02/10/flex-on-mobile-first-impressions/</link>
		<comments>http://lucamezzalira.com/2011/02/10/flex-on-mobile-first-impressions/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 09:28:12 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Touch screen]]></category>
		<category><![CDATA[air 2.5]]></category>
		<category><![CDATA[AIR mobile]]></category>
		<category><![CDATA[flex framework]]></category>
		<category><![CDATA[flex hero]]></category>
		<category><![CDATA[flex mobile]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=394</guid>
		<description><![CDATA[Like you know I love work with mobile and embedded stuff, in particular I love working with Flash Platform on mobile devices. In latest months I worked on Android and iOS with Flash Professional but in latest weeks I started &#8230; <a href="http://lucamezzalira.com/2011/02/10/flex-on-mobile-first-impressions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=394&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Like you know I love work with mobile and embedded stuff, in particular I love working with Flash Platform on mobile devices.<br />
In latest months I worked on Android and iOS with Flash Professional but in latest weeks I started to work with Flex HERO sdk.<br />
I love so much work with Flex but on mobile I&#8217;ve never tried yet.<br />
First impression is that work with Flex on mobile stuff is quite fast respect Flash because it adds a lots of usual features that a mobile application needs.</p>
<p><strong>Splash page</strong></p>
<p>Any mobile application that is called like that, needs a splash page to introduce the real application.<br />
In Flex you can set it very easily directly in main MXML file.<br />
The executable MXML file on mobile project is called ViewNavigatorApplication instead of WindowedApplication like every AIR application, this new class allow you to set <code>splashScreenImage, splashScreenScaleMode</code> and <code>splashScreenMinimumDisplayTime</code>.<br />
Those properties allow you to choose an image file for the splash screen, set its minimum duration and finally how it works in each screen&#8217;s dimensions where application runs.</p>
<p><strong>Views</strong></p>
<p>I mention ViewNavigatorApplication, this is a new concept of Flex mobile applications, in fact each application is composed by different View components.<br />
Views are so interesting because they have a lots of things pre-builted like ActionBar, activation and deactivation events, View title, caching data and so on.<br />
Every view is managed by a navigator, with the navigator you can push or pop views (like an array) to change them.<br />
You can also choose how they will be animated, by default you can see a simple slide left or right (depends if you are adding or removing a view).<br />
ActionBar is a new interesting component composed by 3 elements:</p>
<ul>
<li>navigationContent</li>
<li>titleContent</li>
<li>actionContent</li>
</ul>
<p><img class="aligncenter" title="Action bar Flex 4 diagram " src="http://opensource.adobe.com/wiki/download/attachments/51839392/ActionBarDiagram.png?version=1&amp;modificationDate=1277944068000" alt="" width="334" height="174" /></p>
<p>Usually actionBar could be used like a context menu of the view, remember that on mobile development is necessary to go back in the previous mask and also remember that your user doesn&#8217;t work on an application like uses a desktop application so shortcuts are so important.</p>
<p><strong>Mobile Components </strong></p>
<p>The new Flex framework &#8220;Hero&#8221; added optimized components for mobile purpose.<br />
Until now I worked with textinputs, labels and lists that works very well, I tried in 3 different Android phones and performance are quite good.<br />
Another new component added is <code>IconItemRenderer</code> that is an optimized item renderer for list component for example.<br />
This component could be customized with: title, message field, icon and a decorator class that allow you to add for example another image. This is an IconItemRenderer sample where I added also filters (a drop shadow in this case)<br />
<a href="http://lucamezzalira.files.wordpress.com/2011/02/iconitemrenderer.png"><img class="aligncenter size-medium wp-image-397" title="iconitemrenderer flex 4 mobile" src="http://lucamezzalira.files.wordpress.com/2011/02/iconitemrenderer.png?w=300&#038;h=71" alt="" width="300" height="71" /></a></p>
<p><strong>Device Interaction &amp; Flex Performance</strong></p>
<p>Another cool thing that allow you to save time is that back button on the smartphone is managed by the application and it automatically goes to the previous view when a user click on hit.<br />
In my few samples I tried to work without using cacheAsBitmap and cacheAsBitmapMatrix to have better performance and believe me that you remain astonished by the performance.<br />
In fact performance are so good, it is so optimized for mobile purpose and everything works well, I tried to add custom effects and filters but performance were amazing too.</p>
<p><strong>Mobile project Architecture</strong></p>
<p>This is my favorite topic, when I started to work on mobile stuff with Actionscript 3 I thought on how to have great performances but with a good architecture that allow me to maintain my application during own life.</p>
<p>So I investigated on how new mobile technologies work and I found that <a href="http://qt.nokia.com/" target="_blank">Nokia QT</a> works on mobile with a <a href="http://en.wikipedia.org/wiki/Model_View_ViewModel" target="_blank">MVVM architecture</a>, usually instead of controllers you can use delegates but depends of the application.<br />
Working with MVVM architecture and a good design pattern like observer you can solve any problem in a mobile project, performances are perfect and you can optimize your code in the best way you like.<br />
There are other tests that I want to try, the first one will be using Signals instead of Observer, I&#8217;d like to know performances in a mobile project (stay tuned <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ).</p>
<p><strong>Final Conclusion</strong></p>
<p>The new Flex framework is an interesting step to the future, with this framework I&#8217;m sure you can create cool application in few days focusing on details and not on the application skeleton.</p>
<p>I suggest to take a look at <a href="http://tv.adobe.com/watch/adc-presents/flex-mobile-part-1-beginning-a-mobile-application/" target="_blank">Adobe TV</a>, <a href="http://labs.adobe.com/technologies/flex/mobile/" target="_blank">Adobe labs</a> and <a href="http://opensource.adobe.com/wiki/display/flexsdk/Hero" target="_blank">Adobe Opensource</a> to start work with Flex HERO!</p>
<p><strong>UPDATE</strong></p>
<p>take a look here to the Flex mobile performance</p>
<span style="text-align:center; display: block;"><a href="http://lucamezzalira.com/2011/02/10/flex-on-mobile-first-impressions/"><img src="http://img.youtube.com/vi/Uqc2nBgRmlk/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=394&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/02/10/flex-on-mobile-first-impressions/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://opensource.adobe.com/wiki/download/attachments/51839392/ActionBarDiagram.png?version=1&#38;modificationDate=1277944068000" medium="image">
			<media:title type="html">Action bar Flex 4 diagram </media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/02/iconitemrenderer.png?w=300" medium="image">
			<media:title type="html">iconitemrenderer flex 4 mobile</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Community Professional for 2011</title>
		<link>http://lucamezzalira.com/2011/01/28/adobe-community-professional-for-2011/</link>
		<comments>http://lucamezzalira.com/2011/01/28/adobe-community-professional-for-2011/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 06:57:20 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[ACP]]></category>
		<category><![CDATA[Adobe Community Professional]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=387</guid>
		<description><![CDATA[I&#8217;m so excited to announce that I become Adobe Community Professional for 2011! It&#8217;s my first time in this group and I&#8217;ve no words to say thanks Adobe and all the community staff that decide to get me in. I &#8230; <a href="http://lucamezzalira.com/2011/01/28/adobe-community-professional-for-2011/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=387&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so excited to announce that I become Adobe Community Professional for 2011!<br />
It&#8217;s my first time in this group and I&#8217;ve no words to say thanks Adobe and all the community staff that decide to get me in.<br />
I hope this year to do a good job and I really want to meet other guys next MAX in L.A.<br />
This 2011 will be for me and my company an year with tons of changing and becoming ACP gives me new forces to make them!<br />
Thank you again to everyone <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://lucamezzalira.files.wordpress.com/2011/01/acp_logo.gif"><img src="http://lucamezzalira.files.wordpress.com/2011/01/acp_logo.gif?w=450" alt="" title="acp_logo"   class="aligncenter size-full wp-image-386" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/387/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/387/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/387/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=387&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2011/01/28/adobe-community-professional-for-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>

		<media:content url="http://lucamezzalira.files.wordpress.com/2011/01/acp_logo.gif" medium="image">
			<media:title type="html">acp_logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with Adobe AIR FileSystem API on iPad</title>
		<link>http://lucamezzalira.com/2010/12/07/working-with-adobe-air-filesystem-api-on-ipad/</link>
		<comments>http://lucamezzalira.com/2010/12/07/working-with-adobe-air-filesystem-api-on-ipad/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 10:52:40 +0000</pubDate>
		<dc:creator>lucamezzalira</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Touch screen]]></category>
		<category><![CDATA[actionscript 3 mobile]]></category>
		<category><![CDATA[adobe air]]></category>
		<category><![CDATA[air iOS]]></category>
		<category><![CDATA[air iPad]]></category>
		<category><![CDATA[air iPhone]]></category>
		<category><![CDATA[AIR mobile]]></category>
		<category><![CDATA[as3 mobile]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 4]]></category>
		<category><![CDATA[urlStream]]></category>

		<guid isPermaLink="false">http://lucamezzalira.com/?p=378</guid>
		<description><![CDATA[Recently I made some test on iPad to test how to update contents of my mobile applications. I tried some new AIR 2 API like open default program with PDF or XLS files but I get error #3000 (privileges error). &#8230; <a href="http://lucamezzalira.com/2010/12/07/working-with-adobe-air-filesystem-api-on-ipad/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=378&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I made some test on iPad to test how to update contents of my mobile applications.<br />
I tried some new AIR 2 API like open default program with PDF or XLS files but I get error #3000 (privileges error).<br />
My idea is to create a routine where I&#8217;ll be able to update all contents on my application without passing trough Apple store.<br />
So I tried with URLStream and AIR filesystem API, everything works well.<br />
Code is so easy, take a look here:</p>
<pre><span style="color:#ff6600;">//RETRIEVING IMAGE FROM ANY WEBSERVER
var urlS:URLStream = new URLStream();
urlS.addEventListener(Event.COMPLETE, downloadComplete);
urlS.addEventListener(ProgressEvent.PROGRESS, showPerc);
urlS.load(new URLRequest("http://192.168.1.9:8888/oliviaWilde.jpg"))

//DOWNLOADED IMAGE BYTEARRAY AND LOADING IN LOADER
function downloadComplete(e:Event):void {

  perc_txt.text = "";
  fileData = new ByteArray();
  urlS.readBytes(fileData,0,urlS.bytesAvailable);
  bytes = urlS.bytesAvailable;
  l.loadBytes(fileData);
  l.addEventListener(MouseEvent.CLICK, saveIt);

}
//SAVE IMAGE INTO APPLICATIONSTORAGEDIRECTORY
function saveIt(e:MouseEvent):void{

  f = File.applicationStorageDirectory.resolvePath("a.jpg");
  var fs:FileStream = new FileStream();
  fs.open(f, FileMode.WRITE)
  fs.writeBytes(fileData);
  fs.close();

}

//LOAD IMAGE FROM APPLICATIONSTORAGEDIRECTORY
function loadLocalImg(e:MouseEvent):void{

  var finalBA:ByteArray = new ByteArray();
  var fs:FileStream = new FileStream();
  fs.open(f, FileMode.READ);
  fs.readBytes(finalBA, 0, bytes);
  fs.close();
  l.loadBytes(finalBA);

}
</span></pre>
<p>Using applicationStorageDirectory, you can save data into your application and retrieve it with AIR API.<br />
In the video below, you can see a little demo where I load an image from a server, I save it, I unload click on the black right button and finally I load again but from ApplicationStorageDirectory, with the black left one, instead of loading from webserver.</p>
<span style="text-align:center; display: block;"><a href="http://lucamezzalira.com/2010/12/07/working-with-adobe-air-filesystem-api-on-ipad/"><img src="http://img.youtube.com/vi/YfabLtVXyFA/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lucamezzalira.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lucamezzalira.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lucamezzalira.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lucamezzalira.com&amp;blog=899073&amp;post=378&amp;subd=lucamezzalira&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lucamezzalira.com/2010/12/07/working-with-adobe-air-filesystem-api-on-ipad/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/316d59055c8be616a0242c04169c95bc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lucamezzalira</media:title>
		</media:content>
	</item>
	</channel>
</rss>
