<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Restart an Adobe AIR Application with Code!</title>
	<atom:link href="http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/</link>
	<description>Creativity , Interactivity and Technology</description>
	<lastBuildDate>Wed, 16 May 2012 16:00:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: jeff</title>
		<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/comment-page-1/#comment-62865</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Fri, 27 Apr 2012 18:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://creative-geeks.com/blog/?p=637#comment-62865</guid>
		<description>I&#039;ve tried to get this going 10 thousand different ways, it won&#039;t work.  I can get it to work if run from a button click event from my main.mxml.  But if I dispatch and event from a sub.mxml, my main.mxml listens for that, then runs a function in main.mxml it will close the app, but not restart.  

The button click runs the exact same function, so I know the function code works.  Any help?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried to get this going 10 thousand different ways, it won&#8217;t work.  I can get it to work if run from a button click event from my main.mxml.  But if I dispatch and event from a sub.mxml, my main.mxml listens for that, then runs a function in main.mxml it will close the app, but not restart.  </p>
<p>The button click runs the exact same function, so I know the function code works.  Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlara</title>
		<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/comment-page-1/#comment-35285</link>
		<dc:creator>carlara</dc:creator>
		<pubDate>Tue, 23 Aug 2011 20:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://creative-geeks.com/blog/?p=637#comment-35285</guid>
		<description>same for me it works in both 10.6 and windows 7. hopefully it works on XP??</description>
		<content:encoded><![CDATA[<p>same for me it works in both 10.6 and windows 7. hopefully it works on XP??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cbrown</title>
		<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/comment-page-1/#comment-35131</link>
		<dc:creator>cbrown</dc:creator>
		<pubDate>Sun, 21 Aug 2011 19:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://creative-geeks.com/blog/?p=637#comment-35131</guid>
		<description>Works for me on both osx 10.6.8 and windows 7 with an air app from flash pro using the above code from Luke...

...UNLESS... an flvplayback component loads a video! After that, it will only close and not restart. I&#039;ve tried everything under the sun to destroy the video/component before the restart to no avail. Any suggestions are very appreciated, thanks.</description>
		<content:encoded><![CDATA[<p>Works for me on both osx 10.6.8 and windows 7 with an air app from flash pro using the above code from Luke&#8230;</p>
<p>&#8230;UNLESS&#8230; an flvplayback component loads a video! After that, it will only close and not restart. I&#8217;ve tried everything under the sun to destroy the video/component before the restart to no avail. Any suggestions are very appreciated, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shai Rosenfeld</title>
		<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/comment-page-1/#comment-19209</link>
		<dc:creator>Shai Rosenfeld</dc:creator>
		<pubDate>Sat, 19 Feb 2011 00:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://creative-geeks.com/blog/?p=637#comment-19209</guid>
		<description>This may be obvious to some, but it&#039;s important: 

Put this in the mxml/main of the application; it won&#039;t work if you use that block of code in an external actionscript custom class you create.</description>
		<content:encoded><![CDATA[<p>This may be obvious to some, but it&#8217;s important: </p>
<p>Put this in the mxml/main of the application; it won&#8217;t work if you use that block of code in an external actionscript custom class you create.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke McSorley</title>
		<link>http://creative-geeks.com/blog/2009/10/05/restart-an-adobe-air-application-with-code/comment-page-1/#comment-13130</link>
		<dc:creator>Luke McSorley</dc:creator>
		<pubDate>Fri, 12 Nov 2010 15:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://creative-geeks.com/blog/?p=637#comment-13130</guid>
		<description>Hi man, cheers for the code it worked a treat for me. I had to change it slightly for flash and thought it maybe useful for some people. Heres what i did.

the code is basicly the same, only dif is you wont have the &quot;mx.core.WindowedApplication&quot; libray to import. so instead do this:
&lt;code&gt;
var mgr:ProductManager = new ProductManager(&quot;airappinstaller&quot;);
mgr.launch(&quot;-launch &quot; + NativeApplication.nativeApplication.applicationID + &quot; &quot; + NativeApplication.nativeApplication.publisherID);
NativeApplication.nativeApplication.exit();
&lt;/code&gt;
you will need to include:
&lt;code&gt;
import flash.desktop.NativeApplication;
&lt;/code&gt;
in your imports.

Then look were your airfiles are being created and you will see a file called [&quot;name of your air file&quot;]-app.xml . open this and as mentiond before make sure that false is set to true:
&lt;code&gt;
&lt;allowBrowserInvocation&gt;true&lt;/allowBrowserInvocation&gt;
&lt;/code&gt;

Insert Code here

Insert Code here</description>
		<content:encoded><![CDATA[<p>Hi man, cheers for the code it worked a treat for me. I had to change it slightly for flash and thought it maybe useful for some people. Heres what i did.</p>
<p>the code is basicly the same, only dif is you wont have the &#8220;mx.core.WindowedApplication&#8221; libray to import. so instead do this:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">var mgr:ProductManager = new ProductManager(&quot;airappinstaller&quot;);<br />
mgr.launch(&quot;-launch &quot; + NativeApplication.nativeApplication.applicationID + &quot; &quot; + NativeApplication.nativeApplication.publisherID);<br />
NativeApplication.nativeApplication.exit();</div></div>
<p>you will need to include:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">import flash.desktop.NativeApplication;</div></div>
<p>in your imports.</p>
<p>Then look were your airfiles are being created and you will see a file called ["name of your air file"]-app.xml . open this and as mentiond before make sure that false is set to true:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;allowBrowserInvocation&gt;true&lt;/allowBrowserInvocation&gt;</div></div>
<p>Insert Code here</p>
<p>Insert Code here</p>
]]></content:encoded>
	</item>
</channel>
</rss>

