Flex AIR 重启需要修改的配置文件

Tags: flex

重启代码:


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>

本文链接:http://www.4byte.cn/learning/21539.html