Return to Snippet

Revision: 50842
at September 5, 2011 23:12 by CreativeAddiction


Initial Code
public function reboot():void {

var app:WindowedApplication = FlexGlobals.topLevelApplication as WindowedApplication;	
var mgr:ProductManager = new ProductManager("airappinstaller"); 	
mgr.launch("-launch " + app.nativeApplication.applicationID + " " + app.nativeApplication.publisherID);  	
app.close();

}

Initial URL


Initial Description
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.

Initial Title
Restart Air Application With AS3 & Flex 4.5

Initial Tags
Flex

Initial Language
ActionScript 3