/ 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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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(); }