加载和重新加载外部SWF在空气中的iOS加载、空气中、SWF、iOS

2023-09-08 12:17:59 作者:不玩心枉少年,

我发现如何装入一个或多个外部SWF文件,打包带我AIR iOS应用一些信息,在实际工作code是:

i found several info on how to load one or more external SWF files, packaged with my AIR iOS App, the actual working code is:

var myUrlRequest:URLRequest = new URLRequest(mySWF);
var myLoaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
var loader: Loader = new Loader();
loader.load(myUrlRequest, myLoaderContext);
Object(root).MK.addChild(loader)

它适用于Android设备和Windows PC上,但是在iOS它加载外部主权财富基金仅在第一次!在我的项目,我有几个按钮,加载外部SWF,但每个按钮的工作原理仅在第一次!

It works on Android devices and on Windows PC, but on iOS it load the external SWFs only the first time! In my project I have several buttons that loads an external SWF, but each button works only the first time!

你知道吗?它似乎很无用,如果我不能重新装入一个SWF!

Any idea? It seems very unuseful if i can't reload an SWF!

谢谢,尼古拉

推荐答案

在以下博客从Adobe你可以阅读所有关于它... https://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/

In the following blog from adobe you can read all about it... https://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/