<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IxD Consultant &#187; 2009</title>
	<atom:link href="http://ixd-consultant.com/blog/category/2009/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixd-consultant.com/blog</link>
	<description>UX, AS, Thoughts</description>
	<lastBuildDate>Mon, 12 Jul 2010 21:00:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Arabic Text in ActionScript 2.0</title>
		<link>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/</link>
		<comments>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 08:56:55 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[December]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=212</guid>
		<description><![CDATA[Update: a newer version available here Well, this issue is a very old one, I&#8217;ve always experienced annoying problems each time I try to render Arabic text on run-time using Flash and ActionScript 2.0, Flash doesn&#8217;t support right-to-left languages, and when it comes to Arabic, we are talking about proper characters joining and word wrapping [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F12%252F21%252Farabic-text-in-actionscript-2-0%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F5jPwhS%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Arabic%20Text%20in%20ActionScript%202.0%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>Well, this issue is a very old one, I&#8217;ve always experienced annoying problems each time I try to render Arabic text on run-time using Flash and ActionScript 2.0, Flash doesn&#8217;t support right-to-left languages, and when it comes to Arabic, we are talking about proper characters joining and word wrapping ..</p>
<p>I never stopped tracking this specific issue, googling it to find any new solution has been developed somewhere, for a long time I can only find <a href="http://www.arabicode.com/en/flaraby/as3/flex/" target="_blank"><span style="color: #0066ff;">this</span></a> one, the guy have it perfectly solved, he was having his solution implemented using ActionScript 2.0 at some point earlier, but he stopped publishing that and kept his latest version only, which works with ActionScript 3.0, and for old fashion guys like me he left another version to manually copy proper Arabic text using an AIR application he developed <a href="http://www.arabicode.com/en/flaraby/swf/" target="_blank"><span style="color: #0066ff;">here</span></a></p>
<p>Recently, Adobe says that they finally supports right-to-left languages along with bi-directional and complex script ones, only using ActionScript 3.0 and it requires Flash Player 10 or above, they even have an open source framework called <a href="http://labs.adobe.com/technologies/textlayout/" target="_blank"><span style="color: #0066ff;">Text Layout Framework</span></a>, it&#8217;s perfect actually, it should put an end to this issue, but ..</p>
<p>I have my own objections, I made my quick test to check their new technique <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic_as3.zip" target="_blank"><span style="color: #0066ff;">here</span></a>, Arabic text is finally rendered properly, but why we have to add so many childs to our display list from different TextLines and TextBlocks instead of a single TextField? also we have to set a max width, and I couldn&#8217;t find a way to scroll through text unless I used a custom scroller and masking the text just like any other MovieClip or DisplayObject, personally, I find this much complicated experience just to display simple string!</p>
<p>I do like ActionScript 2.0 a lot more anyway, not just for handling text easily, but for many other reasons, I can stop to post another article to explain why I&#8217;m saying this, right now we need to know what I&#8217;ve reached regarding to our issue ..</p>
<p>In a nutshell, ActionScript 2.0 used to refuse right-to-left languages, so we can&#8217;t embed fonts, wrap text properly, and when it comes to Arabic text we also see our characters splitted which is inappropriate for Arabic readers, the old solution for this was loading text encoded in UTF-8 from external text/xml files, and still no word wrapping, and on Mac machines Arabic letters still splitted, we can align text but its direction still not right-to-left ..</p>
<p>So, logically, I know that I have to construct my Arabic text manually, to achieve that I had to analyze Arabic rules for character joining with all it&#8217;s special cases, and then find a way to force its direction to be left-to-right, and the word wrapping part is not that hard after all, this is basically what I did actually!</p>
<p>My only problem was in finding a way to inject all proper Arabic characters with its unique cases, for a long time I found that very difficult, Flash doesn&#8217;t allow me to copy those from other text processing tools, and of course there&#8217;s no way to type each character a lone in different cases using keyboard ..</p>
<p>Finally, I found a way to do that, and it was extremely simple! I found <a href="http://www.unicode.org/charts/" target="_blank"><span style="color: #0066ff;">these</span></a> charts at unicode official website, and that&#8217;s it! now I can instruct ActionScript 2.0 to handle my Arabic characters properly!</p>
<p>You&#8217;re most welcome to use and test my <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/parsearabic_v1.0.zip" target="_blank"><span style="color: #0066ff;">parseArabic</span></a> method,  it supports word wrapping, right-to-left, bi-directional (inline English characters), embedded fonts and custom text formats, here is an example:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="400" src="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic_as2.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p>The above approach doesn&#8217;t support html tags yet, it&#8217;s a bit confusing, but as I said, you&#8217;re welcome to contribute, your reviews can help improving the code ..<br />
This may help any ActionScript 2.0 loyal friend, and I think the same approach can be used for ActionScript 3.0 as well, I will post that soon ..</p>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F12%2F21%2Farabic-text-in-actionscript-2-0%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Intentionally Exposed</title>
		<link>http://ixd-consultant.com/blog/2009/11/12/intentionally-exposed/</link>
		<comments>http://ixd-consultant.com/blog/2009/11/12/intentionally-exposed/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:14:00 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[November]]></category>
		<category><![CDATA[Thought]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=205</guid>
		<description><![CDATA[For the first time I ask myself how to escape my great depression?! despite all what I&#8217;ve read about such emotional feelings, I still find it more like a lightening strike, we do not really know when it hits us .. Who am I anyway, what really describes me best right now .. struggling between [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F11%252F12%252Fintentionally-exposed%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Intentionally%20Exposed%22%20%7D);"></div>
<p>For the first time I ask myself how to escape my great depression?! despite all what I&#8217;ve read about such emotional feelings, I still find it more like a lightening strike, we do not really know when it hits us ..</p>
<p>Who am I anyway, what really describes me best right now .. struggling between being plugged into technology and being shot into space .. living in a mad house in Egypt called Cairo .. hiding behind my mysterious imaginations .. and most of all .. suffering from a frequently brain-freeze status!</p>
<p>I used to believe that everything happens to me is because of some reason I&#8217;ve actually created myself .. I know that I&#8217;ve been buried between a keyboard and a screen for a long time .. and this is exactly what blocks my eyes from seeing so much in this world .. sometimes I feel like I can&#8217;t help it and I am addicted .. other times I feel like a prisoner .. how could I feel so much hesitation?</p>
<p>Hesitation .. I can&#8217;t ignore being afraid just by saying this word .. may be it&#8217;s my pride .. may be I&#8217;m writing this post trying to face it ..</p>
<p>I&#8217;ve always believed that there&#8217;s an answer to any question .. even if it doesn&#8217;t exist &#8220;yet&#8221; in human known history books .. even if it requires an extraterrestrial form of life .. and here I am seeking a new answer ..</p>
<p>Since my brain prefers the analytical behavior, then I might try acting like a seeker instead of talking like one .. and that requires taking off .. using my power of observation .. being exposed .. intentionally!
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F11%2F12%2Fintentionally-exposed%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/11/12/intentionally-exposed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlashCamp Egypt</title>
		<link>http://ixd-consultant.com/blog/2009/10/18/flashcamp-egypt/</link>
		<comments>http://ixd-consultant.com/blog/2009/10/18/flashcamp-egypt/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 22:05:49 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[October]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=198</guid>
		<description><![CDATA[Yesterday I&#8217;ve joined Flash Camp in Egypt .. Flash Camp Egypt is the most prestegious Adobe User Groups event in Egypt for 2009. Organized by Imagine &#8211; Adobe User Group in Egypt, and hosted by the AUC in their magnificent Bassily Auditorium at the New Campus in New Cairo. Sarmady was one of the gold [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F10%252F18%252Fflashcamp-egypt%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22FlashCamp%20Egypt%22%20%7D);"></div>
<p>Yesterday I&#8217;ve joined Flash Camp in Egypt ..</p>
<p><a href="http://www.flashcampegypt.com/" target="_blank"><span style="color: #0066ff;">Flash Camp Egypt</span></a> is the most prestegious Adobe User Groups event in Egypt for 2009. Organized by <a href="http://www.tinyurl.com/augimagine" target="_blank"><span style="color: #0066ff;">Imagine &#8211; Adobe User Group in Egypt</span></a>, and hosted by the <a href="http://www.aucegypt.edu/" target="_blank"><span style="color: #0066ff;">AUC</span></a> in their magnificent Bassily Auditorium at the New Campus in New Cairo.</p>
<p><a href="http://sarmady.net" target="_blank"><span style="color: #0066ff;">Sarmady</span></a> was one of the gold sponsors for the event, along with many other sponsors like Adobe Inc., Msn Arabia, Datum, O&#8217;Reilly, iStock Photo, Total Training, &#8230;, and many more.</p>
<p>Event sessions was concerning <a href="http://www.adobe.com/flashplatform/" target="_blank"><span style="color: #0066ff;">Adobe Flash Platform</span></a> technologies and it&#8217;s benefits for digital business in Egypt, focusing on <a href="http://www.adobe.com/products/flashplayer/" target="_blank"><span style="color: #0066ff;">Adobe Flash Player</span></a> and <a href="http://www.adobe.com/products/air/" target="_blank"><span style="color: #0066ff;">Adobe AIR</span></a> runtime, involving the major authoring environments like <a href="http://www.adobe.com/products/flash/?promoid=BPDEE" target="_blank"><span style="color: #0066ff;">Adobe Flash Professional</span></a>, <a href="http://www.adobe.com/products/flex/?promoid=BPDEQ" target="_blank"><span style="color: #0066ff;">Adobe Flex Builder</span></a> and the new product <a href="http://labs.adobe.com/technologies/flashcatalyst/" target="_blank"><span style="color: #0066ff;">Adobe Flash Catalyst</span></a>.</p>
<p>Flash Platform created a breakthrough into the digital market, by migrating the end-user practices to a whole new level of rich-internet experiences, which delivers the most compelling applications, content, and video to the widest possible audience.</p>
<p>We&#8217;re not talking about animation features only, but also interactive content, data visualization, rich applications, media and gaming experience, all in one light-weight software platform used by <a href="http://www.adobe.com/products/player_census/flashplayer/" target="_blank"><span style="color: #0066ff;">99%</span></a> of internet users, the Flash Player.</p>
<p>Sarmady always in a hunt for new technologies, especially creative and interactive ones, we use Flash Platform interactive features for all our digital advertising campaigns, also we have developed special reporting services like Dwell Time, Leading Actions, and many more to come ..
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F10%2F18%2Fflashcamp-egypt%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/10/18/flashcamp-egypt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still Life</title>
		<link>http://ixd-consultant.com/blog/2009/04/11/still-life/</link>
		<comments>http://ixd-consultant.com/blog/2009/04/11/still-life/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 03:17:34 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[April]]></category>
		<category><![CDATA[Art]]></category>
		<category><![CDATA[Illustration]]></category>
		<category><![CDATA[Interactive]]></category>

		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=173</guid>
		<description><![CDATA[A remake of Antonio de Pereda&#8217;s piece of art, I used crayon colors on paper [50x35 cm] This was long time ago, it reminds me of my first year living in Cairo/Egypt .. Each time I take a look at this the same question hunts my head, should I take care of illustration instead of [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F04%252F11%252Fstill-life%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Still%20Life%22%20%7D);"></div>
<p><a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/04/still-life.jpg" target="_blank"><img class="size-medium wp-image-174 alignnone" title="Still Life" src="http://ixd-consultant.com/blog/wp-content/uploads/2009/04/still-life-500x340.jpg" alt="Still Life" width="500" height="340" /></a></p>
<p>A remake of <a href="http://en.wikipedia.org/wiki/Antonio_de_Pereda" target="_blank"><span style="color: #0066ff;">Antonio de Pereda&#8217;s</span></a> piece of art, I used crayon colors on paper [50x35 cm]<br />
This was long time ago, it reminds me of my first year living in Cairo/Egypt ..<br />
Each time I take a look at this the same question hunts my head, should I take care of illustration instead of interactive development ?! or my mind just play tricks on me ?!
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F04%2F11%2Fstill-life%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/04/11/still-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Golden Egypt Web Award</title>
		<link>http://ixd-consultant.com/blog/2009/02/10/golden-egypt-web-award/</link>
		<comments>http://ixd-consultant.com/blog/2009/02/10/golden-egypt-web-award/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 06:29:41 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[January]]></category>
		<category><![CDATA[Award]]></category>

		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=126</guid>
		<description><![CDATA[It has been 2 years now since I have joined AROMA Designs &#038; Solutions, and I am proud to be the founder of a new Application Development Department which known as AROMA Systems .. The Department is absolutely new to our world, it needs too much effort in order to evolve, but still, the very [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F02%252F10%252Fgolden-egypt-web-award%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Golden%20Egypt%20Web%20Award%22%20%7D);"></div>
<p>It has been 2 years now since I have joined <a href="http://graphicaroma.com" target="_blank"><span style="color: #0066ff;">AROMA Designs &#038; Solutions</span></a>, and I am proud to be the founder of a new Application Development Department which known as <a href="http://aroma-systems.com" target="_blank"><span style="color: #0066ff;">AROMA Systems</span></a> ..</p>
<p>The Department is absolutely new to our world, it needs too much effort in order to evolve, but still, the very initial projects was nominated to <a href="http://egyptwebawards.org" target="_blank"><span style="color: #0066ff;">Egypt Web Awards</span></a> ..</p>
<p>Last Saturday I was invited to the Egypt Web Awards ceremony, and gladly we received 2 winning awards, a Golden award for <a href="http://graphicaroma.com" target="_blank"><span style="color: #0066ff;">graphicaroma.com</span></a> in Advertising and Production category, and a Silver award for <a href="http://graphicaroma.com" target="_blank"><span style="color: #0066ff;">aromacreatives.com</span></a> in Art and Design category ..</p>
<p>The beautiful part that the Golden website was my first project for the company, and was the key project for building a whole new department, it was the best event in my career so far ..
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F02%2F10%2Fgolden-egypt-web-award%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/02/10/golden-egypt-web-award/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EncryptedLocalStore and AIR 1.5</title>
		<link>http://ixd-consultant.com/blog/2009/01/03/encryptedlocalstore-and-air-15/</link>
		<comments>http://ixd-consultant.com/blog/2009/01/03/encryptedlocalstore-and-air-15/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 16:42:39 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[January]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=115</guid>
		<description><![CDATA[I had my older AIR 1.1 application which uses encrypted local store data for saving specific settings per user, today when the AIR runtime gets updated to version 1.5 my application turned to a total mess! I&#8217;m using various classes in my simple application that might cause this issue as far as I thought, like [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F01%252F03%252Fencryptedlocalstore-and-air-15%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22EncryptedLocalStore%20and%20AIR%201.5%22%20%7D);"></div>
<p>I had my older AIR 1.1 application which uses encrypted local store data for saving specific settings per user, today when the AIR runtime gets updated to version 1.5 my application turned to a total mess!<br />
I&#8217;m using various classes in my simple application that might cause this issue as far as I thought, like loading CSS on runtime or loading conditional states and components depending on certain parameters retrieved at login ..<br />
I spent a few hours hunting down what actually happened and at last I think I figured it out ..<br />
The new AIR has 3 new features, encrypted local databases,  Flash Player 10 capabilities and the new WebKit update, it seems that Adobe somehow has made a change regarding to how the AIR runtime read and write the encrypted local data, and a simple try and catch block of code just revealed the problem ..</p>
<p>The following example assumes that there is encrypted data stored using an older version of the application complied using AIR 1.1, and the application checks for a certain key for loading the perspective CSS file, since the new runtime may not able to read the older version of the encrypted data then it should throw an error, at this point I reset any previous saved data and load a default CSS file in order to bypass this issue when any client update to AIR 1.5</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> skinBytes:ByteArray;
<span style="color: #000000; font-weight: bold;">var</span> styleEvent:IEventDispatcher;
<span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span>
	skinBytes =  EncryptedLocalStore.<span style="color: #006600;">getItem</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;skin&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>skinBytes <span style="color: #66cc66;">!</span>= <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		styleEvent= StyleManager.<span style="color: #006600;">loadStyleDeclarations</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;css/&quot;</span>+skinBytes.<span style="color: #006600;">readUTFBytes</span><span style="color: #66cc66;">&#40;</span>skinBytes.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
		styleEvent = StyleManager.<span style="color: #006600;">loadStyleDeclarations</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;css/black.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span> <span style="color: #0066CC;">catch</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #808080; font-style: italic;">//Alert.show(e.message);</span>
	EncryptedLocalStore.<span style="color: #006600;">reset</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	styleEvent = StyleManager.<span style="color: #006600;">loadStyleDeclarations</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;css/black.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Well, this is not an intelligent solution at all, cause these saved data my be much more complicated and I should not force my user to have it all wiped out just for upgrading the runtime!<br />
Anyway, I&#8217;m not sure if my conclusion about the encryption handling change between AIR 1.1 and 1.5, especially that Adobe didn&#8217;t mention anything regarding to this particular issue as fas as I know, but I thought that may be this help someone else experiencing the same problem when migrating his application to the new AIR runtime ..
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F01%2F03%2Fencryptedlocalstore-and-air-15%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/01/03/encryptedlocalstore-and-air-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
