Posted By

CreativeAddiction on 09/05/11


Tagged

restart AIR Flex mxml adobe 4


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

CreativeAddiction


Restart Air Application With AS3 & Flex 4.5


 / Published in: ActionScript 3
 

I was struggling to find a way to restart an Adobe Air application programmed using flex 4.5 and AS3, this is a modification of code found around the web.

  1. public function reboot():void {
  2.  
  3. var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;
  4. var mgr:ProductManager = new ProductManager("airappinstaller");
  5. mgr.launch("-launch " + app.nativeApplication.applicationID + " " + app.nativeApplication.publisherID);
  6. app.close();
  7.  
  8. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: CreativeAddiction on September 5, 2011

Ensure that you have the following set to true in your app.xml file

true

Posted By: CreativeAddiction on September 5, 2011

allowBrowserInvocation

You need to login to post a comment.