加载和重新加载外部SWF在空气中的iOS [英] Load and reload external SWF in AIR for iOS

查看:116
本文介绍了加载和重新加载外部SWF在空气中的iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现如何装入一个或多个外部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你可以阅读所有关于它... <一href="https://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/" rel="nofollow">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/

这篇关于加载和重新加载外部SWF在空气中的iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆