1. 程式人生 > >Flex AIR 重啟程式碼示例

Flex AIR 重啟程式碼示例

重啟程式碼:
var app:WindowedApplication = WindowedApplication(FlexGlobals.topLevelApplication);  
var mgr:ProductManager = new ProductManager("airappinstaller");  
mgr.launch("-launch "+app.nativeApplication.applicationID+" "+app.nativeApplication.publisherID);  
app.close(); 

需要修改配置檔案:

<allowBrowserInvocation>true</allowBrowserInvocation>  

轉:https://forums.adobe.com/thread/951952