使用AS3和Flex 4.5重新启动Air应用程序

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用AS3和Flex 4.5重新启动Air应用程序相关的知识,希望对你有一定的参考价值。

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. }

以上是关于使用AS3和Flex 4.5重新启动Air应用程序的主要内容,如果未能解决你的问题,请参考以下文章