<?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>franto.com &#187; AIR</title>
	<atom:link href="http://franto.com/category/development/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://franto.com</link>
	<description></description>
	<lastBuildDate>Tue, 23 Aug 2011 10:29:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Major update of Goalscape AIR application</title>
		<link>http://franto.com/major-update-ofr-goalscape-air-application/</link>
		<comments>http://franto.com/major-update-ofr-goalscape-air-application/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 20:06:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Goalscape]]></category>

		<guid isPermaLink="false">http://franto.com/?p=1081</guid>
		<description><![CDATA[This friday we have released <strong><a href="http://www.goalscape.com/blog/major-update-out-today">major update for Goalscape AIR application</a></strong>. It is project we (me with Tomas as <a href="http://www.flexets.com">Flexets company</a>) have been working on for more than year. If you are not aware of Goalscape application please look at intro video. But in one sentence it's <strong>Goal Management Software</strong>.]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fmajor-update-ofr-goalscape-air-application%2F&amp;text=Major update of Goalscape AIR application&amp;count=vertical&amp;lang=en&amp;related=AIR,Flex,Goalscape"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This friday we have released <strong><a href="http://www.goalscape.com/blog/major-update-out-today">major update for Goalscape AIR application</a></strong>. It is project we (me with Tomas as <a href="http://www.flexets.com">Flexets company</a>) have been working on for more than year. If you are not aware of <strong>Goalscape</strong> application please look at intro video. But in one sentence it&#8217;s <strong>Goal Management Software</strong>.</p>
<p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6497482&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=a0a3a8&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6497482&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=a0a3a8&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object></p>
<p>Here is list of main features in this update:</p>
<ul>
<li><strong>Search function</strong></li>
<li><strong>Adding and naming goals</strong></li>
<li><strong>Icons for common functions</strong></li>
<li><strong>Language support</strong></li>
<li><strong>Notes text</strong></li>
<li><strong>Attachments</strong></li>
</ul>
<p>If you are interested in details go and read about them here: <strong><a href="http://www.goalscape.com/blog/major-update-out-today">Major update for Goalscape AIR application</a></strong> and <strong><a href="http://www.goalscape.com/goalscape-download">download Goalscape</a></strong> (AIR application). You have 1 month free trial and then it&#8217;s just 45€ one time payment which include all future updates.</p>
<p>If you have any questions about <strong><a href="http://www.goalscape.com">Goalscape</a></strong> ask in comments, I can answer them in comments. Even if you install <strong><a href="http://www.goalscape.com">Goalscape</a></strong> and want to see there some features, let me know and we will consider to add them to <strong><a href="http://www.goalscape.com">Goalscape</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/major-update-ofr-goalscape-air-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DragManager.doDrag problems</title>
		<link>http://franto.com/dragmanagerdodrag-problems/</link>
		<comments>http://franto.com/dragmanagerdodrag-problems/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:06:34 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[dragging]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=938</guid>
		<description><![CDATA[I have found 2 issues with DragManager.doDrag. One of the problem is just on Mac and second one is "not really problem", but strange behavior between web version and AIR version. I really can't find answers for this problems, so I'm trying to get answers from you. I hope anyone has workaround for me :)]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fdragmanagerdodrag-problems%2F&amp;text=DragManager.doDrag problems&amp;count=vertical&amp;lang=en&amp;related=AIR,dragging,problem"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I have found 2 issues with DragManager.doDrag. One of the problem is just on Mac and second one is &#8220;not really problem&#8221;, but strange behavior between web version and AIR version. I really can&#8217;t find answers for this problems, so I&#8217;m trying to get answers from you. I hope anyone has workaround for me <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, first problem is about dragImage alpha problem on Mac. <strong>Imagine this:</strong> I want drag some button and I want to make dragImage (which is &#8220;screenshot&#8221; of that dragged button) transparent. So i have create Bitmap from that button and use it as 4th parameter of doDrag() function.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">DragManager.doDrag<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>, dragSource, event, dragImage, draggedButton.<span style="color: #004993;">x</span>, draggedButton.<span style="color: #004993;">y</span>, <span style="color: #000000; font-weight:bold;">0.5</span>, <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>Problem is that on PC dragImage is transparent, but on Mac is solid. And problem is just in AIR, not in web version (Flex). You can try it here</p>
<ul>
<li>Web version: <a href="http://www.franto.com/work/dragMacProblem/">Alpha Drag Problem</a></li>
<li>AIR version: <a href="http://www.franto.com/work/dragMacProblem/DragMacProblemAIR.air">Alpha Drag Problem</a></li>
</ul>
<p>Try drag any button and you should experience this: web version works for PC and Mac as well (I don&#8217;t  have Linux, so you can try Linux as well), but AIR version works just for PC. DragImage on Mac will be solid and not transparent.</p>
<p>Does anyone know, if this is bug, or there is some workaround for this?</p>
<p>Second issue I have found is somethin strange. As I&#8217;m listening from dragStart on Canvas and it handles all 3 buttons, I need to set offset to doDrag() function (5th, 6th parameter) from dragged buton. And you know what? There is difference between web version (Flex) and desktop version (AIR). In web version I need to insert offset like -draggedButton.x, -draggedButton.y, but in AIR version I need to insert draggedButton.x, draggedButton.y. Really strange, but otherwise it doesnt work as expected.</p>
<p>You can see sources of both projects. For web version, use right click, there is <a href="http://www.franto.com/work/dragMacProblem/srcview/index.html">View Source</a> and for AIR version use this link for downloading project source: <a href="http://www.franto.com/work/dragMacProblem/DragMacProblemAIR.zip">AIR Project Download</a>.</p>
<p>I would be glad to hear your opinions and solutions or workarounds. Thank you</p>
<p>Source for creating screenshot and calling DragManager.doDrag</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> dragStart<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>DragEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> dragSource<span style="color: #000000; font-weight: bold;">:</span>DragSource = <span style="color: #0033ff; font-weight: bold;">new</span> DragSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> dragImage<span style="color: #000000; font-weight: bold;">:</span>Image = <span style="color: #0033ff; font-weight: bold;">new</span> Image<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> bd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>draggedButton.<span style="color: #004993;">width</span>, draggedButton.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x00000000<span style="color: #000000;">&#41;</span>;
	bd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>draggedButton<span style="color: #000000;">&#41;</span>;
        dragImage.<span style="color: #004993;">source</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> shadow<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">DropShadowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">DropShadowFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span>,<span style="color: #000000; font-weight:bold;">225</span>,0x000000,<span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> glow<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">GlowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">GlowFilter</span><span style="color: #000000;">&#40;</span>0x888888,<span style="color: #000000; font-weight:bold;">0.5</span>,<span style="color: #000000; font-weight:bold;">20</span>,<span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000;">&#41;</span>;
	glow.<span style="color: #004993;">inner</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
	dragImage.<span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>shadow, glow<span style="color: #000000;">&#93;</span>;
&nbsp;
	dragImage.<span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0.5</span>;
&nbsp;
        DragManager.doDrag<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span>, dragSource, event, dragImage,
                       draggedButton.<span style="color: #004993;">x</span>, draggedButton.<span style="color: #004993;">y</span>, <span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://franto.com/dragmanagerdodrag-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fastest way of closing AIR application</title>
		<link>http://franto.com/fastest-way-of-closing-air-application/</link>
		<comments>http://franto.com/fastest-way-of-closing-air-application/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 10:03:12 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[Feedback]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=932</guid>
		<description><![CDATA[In my appliaction, The code: "application.close();" is used to exit
the application. And I found, no. of ways are there to exit the application. Let me
know, which one is best , should allow the grace full exit and should faster.

No. of ways to Exit in Flex:

       1. NativeApplication.nativeApplication.exit();
       2. Application.application.exit();
       3. application.close();
       4. exit();

       And please advise, any other option is there to exit the application.]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Ffastest-way-of-closing-air-application%2F&amp;text=Fastest way of closing AIR application&amp;count=vertical&amp;lang=en&amp;related=AIR,AIR+Tips,Feedback"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Today on <a href="http://code.google.com/p/flexlib/">FlexLib</a> mailinglist I&#8217;ve found quite nice and interesting question:</p>
<blockquote><p>Dear Folks,</p>
<p>       In my appliaction, The code: &#8220;application.close();&#8221; is used to exit<br />
the application.<br />
And I found, no. of ways are there to exit the application. Let me<br />
know, which one is best , should allow the<br />
grace full exit and should faster.</p>
<p> No. of ways to Exit in Flex:</p>
<p>       1. NativeApplication.nativeApplication.exit();<br />
       2. Application.application.exit();<br />
       3. application.close();<br />
       4. exit();</p>
<p>       And please advise, any other option is there to exit the application.</p>
<p>Thanks in Advance</p>
<p>Lokh</p></blockquote>
<p>What are your experiences with closing AIR application. Do you think it&#8217;s matters on function which is  closing AIR application?</p>
<p>Post your thoughts and I will post them to the FlexLib mailinglist.</p>
<p>Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/fastest-way-of-closing-air-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</title>
		<link>http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/</link>
		<comments>http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 21:48:24 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=856</guid>
		<description><![CDATA[This is long title, but it can tells everything. I came up interesting issue. I do not know if you have already played with new AIR 1.5. We need some new features, so we have used it. And found interesting issue. If you are using HTML compoment and want to load HTML pages with Flash [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>AirTip: Problem with app.xml in Flex 3</a></li><li><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>AirTip: AIR application gained focus</a></li><li><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>AirTip: List all of your drives in AIR application</a></li><li><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Adobe AIR 1.5 available in Flex SDK Nightly builds</a></li><li><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>AIR Tip: ContextMenuItem can crash AIR app on Windows</a></li><li>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fair-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen%2F&amp;text=AIR Tip: Flash movie is not rendered in AIR 1.5 HTML%20in Fullscreen&amp;count=vertical&amp;lang=en&amp;related=AIR,AIR+Tips"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This is long title, but it can tells everything. I came up interesting issue. I do not know if you have already played with new <a href="http://get.adobe.com/air/">AIR 1.5</a>. We need some new features, so we have used it. And found interesting issue. If you are using HTML compoment and want to load HTML pages with Flash content inside it works in normal mode. But if your application is in Fullscreen, Flash movies are not loaded. In context menu (right click) there is just written Movie is not loaded&#8230; If i press Esc and go away from Fullscreen mode, Flash is loaded and all works correctly. Hmmm, strange. Does anyone experience same problem? Can someone from Adobe tell me anything about this.</p>
<p>Sorry, if I can&#8217;t see anything obvious&#8230;</p>
<p>I hope this will help to anyone&#8230;</p>
<p>If you are interested in similar Flex / AIR / Flash Tips &amp; Tricks, consider subscribe to my <a rel="nofollow" href="http://www.franto.com/frantocom-tips-tricks">Franto.com Tips &amp; Tricks</a>.</p>
<h3 style="color:#ff0000">ATTENTION!</h3>
<p>Tyler pointed me to the <a href="http://www.rogue-development.com/blog2/">Marc&#8217;s Musings Blog</a>, where Marc Hughes has experienced same problems, and it is confirmed by Adobe AIR Engineers, that this is <a href="https://bugs.adobe.com/jira/browse/SDK-18152">bug</a>. It&#8217;s already submitted in <a href="https://bugs.adobe.com/jira/browse/SDK-18152">Adobe Bug tracking system</a>.</p>
<p>Here are Marc&#8217;s posts:</p>
<ul>
<li><a href="http://www.rogue-development.com/blog2/2008/11/air-full-screen-hosted-swf-content-in-html-control/">AIR Full screen &amp; hosted swf content in HTML control</a></li>
<li><a href="http://www.rogue-development.com/blog2/2008/11/apollocoders-full-screen-html/">Confirmation from Adobe AIR Engineers, that&#8217;s the bug</a></li>
</ul>
 <div class='series_links'><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>Previous in series</a> </div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AIR Tip: ContextMenuItem can crash AIR app on Windows</title>
		<link>http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/</link>
		<comments>http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 11:34:24 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[Flash Tips & Tricks]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[ContextMenu]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=768</guid>
		<description><![CDATA[This is just quick tip for all AIR developers. If you are developing AIR application and you want to use ContextMenu please be aware of possible problem on Windows platform. This is not problem on Mac, and it's not problem in Flash Player (even on Windows). It is problem just in AIR on Windows]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>AirTip: Problem with app.xml in Flex 3</a></li><li><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>AirTip: AIR application gained focus</a></li><li><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>AirTip: List all of your drives in AIR application</a></li><li><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Adobe AIR 1.5 available in Flex SDK Nightly builds</a></li><li>AIR Tip: ContextMenuItem can crash AIR app on Windows</li><li><a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fair-tip-contextmenuitem-can-crash-air-app-on-windows%2F&amp;text=AIR Tip: ContextMenuItem can crash AIR app on Windows&amp;count=vertical&amp;lang=en&amp;related=AIR,AIR+Tips,ContextMenu"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This is just quick tip for all AIR developers. If you are developing AIR application and you want to use ContextMenu please be aware of possible problem on Windows platform. This is not problem on Mac, and it&#8217;s not problem in Flash Player (even on Windows). It is problem just in AIR on Windows (at least what I have find out till now).</p>
<p>Problem is as follow:</p>
<p>You want to have ContextMenu for some of your item (right click menu). You have created ContextMenu and want to add ContextMenuItem in this way</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> myItem<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">ContextMenuItem</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenuItem</span><span style="color: #000000;">&#40;</span>myItemName<span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>if variable myItemName is initialized or at least is empty string, all is ok. But there can situations when it is null. For example when you want to support multilanguage with ResourceManager, so it&#8217;s not correctly fill up and it&#8217;s null. In that case you AIR will crash and you will not know why, because it&#8217;s works on Mac, it works in FlashPlayer (without AIR), it just doesn work in AIR on Windows platform</p>
<p>So my quick fix was create fix function, like this</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> fixEmptyString<span style="color: #000000;">&#40;</span>val<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>val == <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span>
		<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #990000;">''</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">return</span> val;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> myItem<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">ContextMenuItem</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenuItem</span><span style="color: #000000;">&#40;</span>fixEmptyString<span style="color: #000000;">&#40;</span>myItemName<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>This will for sure.</p>
<p>Hope this helps you.</p>
<p><strong>P.S.</strong> I will post this and another useful AIR tips in my <strong><a title="Franto.com Tips &amp; Tricks, useful Flex, AIR, Flash, ActionScript Tips &amp; Tricks" href="http://www.franto.com/frantocom-tips-tricks">Franto.com Tips &amp; Tricks</a></strong>, so do not wait and subscribe to my list, if you find AIR tip this useful&#8230;</p>
 <div class='series_links'><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Previous in series</a> <a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe AIR 1.5 available in Flex SDK Nightly builds</title>
		<link>http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/</link>
		<comments>http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 08:01:05 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=560</guid>
		<description><![CDATA[Adobe AIR 1.5 with codename Cosmo is available in Flex SDK Nightly builds. There are include almost all features with Flash Player 10, 5 new languages supported, Integration of the SquirrelFish JavaScript VM into the Webkit HTML engine (should provide significant improvements to JavaScript execution), fixed bugs and many more&#8230; Mike Chambers got more information.]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>AirTip: Problem with app.xml in Flex 3</a></li><li><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>AirTip: AIR application gained focus</a></li><li><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>AirTip: List all of your drives in AIR application</a></li><li>Adobe AIR 1.5 available in Flex SDK Nightly builds</li><li><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>AIR Tip: ContextMenuItem can crash AIR app on Windows</a></li><li><a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fadobe-air-15-available-in-flex-sdk-nightly-builds%2F&amp;text=Adobe AIR 1.5 available in Flex SDK Nightly builds&amp;count=vertical&amp;lang=en&amp;related=AIR"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Adobe AIR 1.5 with codename Cosmo is available in <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3">Flex SDK Nightly builds</a>. There are include almost all features with Flash Player 10, 5 new languages supported, Integration of the <a href="http://webkit.org/blog/189/announcing-squirrelfish/">SquirrelFish</a> JavaScript VM into the Webkit HTML engine (should provide significant improvements to JavaScript execution), fixed bugs and many more&#8230;</p>
<p><a href="http://www.mikechambers.com/blog/2008/09/11/adobe-air-15-cosmo-builds-now-in-flex-sdk-nightly-builds/">Mike Chambers got more information.</a></p>
 <div class='series_links'><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>Previous in series</a> <a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AirTip: List all of your drives in AIR application</title>
		<link>http://franto.com/airtip-list-all-of-your-drives-in-air-application/</link>
		<comments>http://franto.com/airtip-list-all-of-your-drives-in-air-application/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 08:00:44 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=522</guid>
		<description><![CDATA[This is quick Air Tip: If you need get list of all of your drives in code, just use var list:Array = File.getRootDirectories&#40;&#41;; It list all of y our hard drives with CD ROM drives. But if CD is inserted in CD ROM drive, it will be listed as well. I don&#8217;t find way how [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>AirTip: Problem with app.xml in Flex 3</a></li><li><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>AirTip: AIR application gained focus</a></li><li>AirTip: List all of your drives in AIR application</li><li><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Adobe AIR 1.5 available in Flex SDK Nightly builds</a></li><li><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>AIR Tip: ContextMenuItem can crash AIR app on Windows</a></li><li><a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fairtip-list-all-of-your-drives-in-air-application%2F&amp;text=AirTip: List all of your drives in AIR application&amp;count=vertical&amp;lang=en&amp;related=AIR,Tip"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This is quick Air Tip: If you need get list of all of your drives in code, just use</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> list<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = File.getRootDirectories<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>It list all of y our hard drives with CD ROM drives. But if CD is inserted in CD ROM drive, it will be listed as well. I don&#8217;t find way how to find out if drive is CD ROM drive, you can just search for files on that inserted CD.</p>
<p>If there is a way how to find out, if drive is CD ROM drive, let us know</p>
 <div class='series_links'><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>Previous in series</a> <a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/airtip-list-all-of-your-drives-in-air-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AirTip: AIR application gained focus</title>
		<link>http://franto.com/airtip-air-application-gained-focus/</link>
		<comments>http://franto.com/airtip-air-application-gained-focus/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 13:25:21 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=520</guid>
		<description><![CDATA[This is little AIR Tip: if you want to know when your AIR application gained focus, just listen to AIREvent.APPLICATION_ACTIVATE. addEventListener&#40;AIREvent.APPLICATION_ACTIVATE, handleApplicationActivate&#41;;]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>AirTip: Problem with app.xml in Flex 3</a></li><li>AirTip: AIR application gained focus</li><li><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>AirTip: List all of your drives in AIR application</a></li><li><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Adobe AIR 1.5 available in Flex SDK Nightly builds</a></li><li><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>AIR Tip: ContextMenuItem can crash AIR app on Windows</a></li><li><a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fairtip-air-application-gained-focus%2F&amp;text=AirTip: AIR application gained focus&amp;count=vertical&amp;lang=en&amp;related=AIR,Tip"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>This is little AIR Tip: if you want to know when your AIR application gained focus, just listen to AIREvent.APPLICATION_ACTIVATE.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>AIREvent.APPLICATION_ACTIVATE, handleApplicationActivate<span style="color: #000000;">&#41;</span>;</pre></div></div>

 <div class='series_links'><a href='http://franto.com/airtips-problem-with-appxml-in-flex-3/' title='AirTip: Problem with app.xml in Flex 3'>Previous in series</a> <a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/airtip-air-application-gained-focus/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flexets Forum: New resource for Flex / Flash / AIR learning</title>
		<link>http://franto.com/flexets-forum-new-resource-for-flex-flash-air-learning/</link>
		<comments>http://franto.com/flexets-forum-new-resource-for-flex-flash-air-learning/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 14:29:43 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flexets]]></category>
		<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[forum]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=514</guid>
		<description><![CDATA[We have launched new forum on our company site Flexets.com to help people in Flex / Flash / AIR / ActionScript learning process. I hope we will help people to see that beauty and easiness in developing with Adobe tools. It&#8217;s targeted to Flex, AIR, Flash, ActionScript as well as collection of useful resources. We [...]]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fflexets-forum-new-resource-for-flex-flash-air-learning%2F&amp;text=Flexets Forum: New resource for Flex / Flash / AIR learning&amp;count=vertical&amp;lang=en&amp;related=AIR,Flash,Flex,forum"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>We have launched new <a href="http://www.flexets.com/forum" title="Flexets Forum - Flex / AIR / Flash / ActionScript Forum">forum</a> on our company site <a href="http://www.flexets.com"><strong>Flexets.com</strong></a> to help people in Flex / Flash / AIR / ActionScript learning process. I hope we will help people to see that beauty and easiness in developing with Adobe tools. It&#8217;s targeted to Flex, AIR, Flash, ActionScript as well as collection of useful resources. We hope we will build small community and teach them, what will they need <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So if you want to learn something, please <a href="http://www.flexets.com/forum/index.php?action=register">sign up</a> and ask your questions in <a href="http://www.flexets.com/forum" title="Flexets Forum - Flex / AIR / Flash / ActionScript Forum">Flexets Forum</a>. Or just show us your work <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/flexets-forum-new-resource-for-flex-flash-air-learning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AirTip: Problem with app.xml in Flex 3</title>
		<link>http://franto.com/airtips-problem-with-appxml-in-flex-3/</link>
		<comments>http://franto.com/airtips-problem-with-appxml-in-flex-3/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 21:21:34 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/airtips-problem-with-appxml-in-flex-3</guid>
		<description><![CDATA[So this is first tip for AIR development (See my FlexTips). I came across bug in Flex 3 Beta. It&#8217;s strange. I was playing with App-app.xml file to try change chrome and transparency. &#160; If you have systemChrome=&#8221;standard&#8221;, transparency must be set to false, if you have systemChrome=&#8221;none&#8221;, you can set transparency to true. And [...]]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for air-tip</h3><ol><li>AirTip: Problem with app.xml in Flex 3</li><li><a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>AirTip: AIR application gained focus</a></li><li><a href='http://franto.com/airtip-list-all-of-your-drives-in-air-application/' title='AirTip: List all of your drives in AIR application'>AirTip: List all of your drives in AIR application</a></li><li><a href='http://franto.com/adobe-air-15-available-in-flex-sdk-nightly-builds/' title='Adobe AIR 1.5 available in Flex SDK Nightly builds'>Adobe AIR 1.5 available in Flex SDK Nightly builds</a></li><li><a href='http://franto.com/air-tip-contextmenuitem-can-crash-air-app-on-windows/' title='AIR Tip: ContextMenuItem can crash AIR app on Windows'>AIR Tip: ContextMenuItem can crash AIR app on Windows</a></li><li><a href='http://franto.com/air-tip-flash-movie-is-not-rendered-in-air-15-html-in-fullscreen/' title='AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen'>AIR Tip: Flash movie is not rendered in AIR 1.5 HTML  in Fullscreen</a></li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fairtips-problem-with-appxml-in-flex-3%2F&amp;text=AirTip: Problem with app.xml in Flex 3&amp;count=vertical&amp;lang=en&amp;related=AIR,AIR+Tips"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>So this is first tip for AIR development (See my FlexTips). I came across bug in Flex 3 Beta. It&#8217;s strange. I was playing with App-app.xml file to try change chrome and transparency.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">&nbsp;</pre></div></div>

<p>If you have systemChrome=&#8221;standard&#8221;, transparency must be set to false, if you have systemChrome=&#8221;none&#8221;, you can set transparency  to true. And now problem. Try to set systemChrome=&#8221;standard&#8221; but have transparent=&#8221;true&#8221;. After compiling there is error: <span style="color:red"><strong>&#8220;Unknown error generating output application.xml files&#8221;</strong></span>. You can set systemChrome and transparent parameters back to correct values, you will not get rid of this error. After surfing I have find, that there is because of <a href="http://sdc.shockwave.com/cfusion/webforums/forum/messageview.cfm?forumid=72&amp;catid=641&amp;threadid=1277512&amp;enterthread=y">some invisible chars in the app.xml file</a>. I was trying to remove them, but I can&#8217;t see any invisible chars. I have tried to delete file, and copy another working app.xml from working AIR project. Nothing.</p>
<p>The only way how I clear the error was by creating new AIR project, and copy all files from old project except app.xml. I use the new one.</p>
<p>Hope this help someone.</p>
<p><strong>May this will help you:</strong><br />
I wanted to delete this project, and in bin folder there were app.xml which was used by Windows and can be delete, and there were wrong line:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">&nbsp;</pre></div></div>

<p>So it seems, when you will have this error in your project, you have to delete or fix file in bin directory, not in source directory.<br />
And when I wanted to switch off the computer, there were process which can be killed (flex 3), so I have to reset the computer.</p>
<p>This should help</p>
 <div class='series_links'> <a href='http://franto.com/airtip-air-application-gained-focus/' title='AirTip: AIR application gained focus'>Next in series</a></div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/airtips-problem-with-appxml-in-flex-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

