Adobe AIR的,IOS和多主权财富基金 - 回到pviously加载SWF中的$ P $主权、加载、财富、基金

由网友(病秧羔子)分享简介:我正在开发使用的Adobe AIR,Flash和ActionScript 3的iOS应用程序,我已经分成部分成单独的SWF文件。我已经成功地得到了应用程序加载外部SWF文件,并​​使用以下code执行他们的动作:I am developing an IOS app using Adobe AIR, Flash and...

我正在开发使用的Adobe AIR,Flash和ActionScript 3的iOS应用程序,我已经分成部分成单独的SWF文件。我已经成功地得到了应用程序加载外部SWF文件,并​​使用以下code执行他们的动作:

I am developing an IOS app using Adobe AIR, Flash and ActionScript 3 and I have divided sections up into separate SWF files. I have successfully gotten the app to load external SWFs and execute their ActionScript using the following code:

var proloader:ProLoader = new ProLoader();
proloader.load(new URLRequest("file.swf"), new LoaderContext(false, ApplicationDomain.currentDomain, null));
addChild(proloader);

现在,我想补充一个复位按钮,允许用户返回到第一个SWF开始从任何其他SWF文件重新启动的应用程序。不幸的是,似乎每当我尝试加载一个SWF,有previously被加载,没有任何反应。我已阅读,卸载和重装主权财富基金是不允许的IOS,事实上,你是限于一个ApplicationDomain中的IOS使事情变得困难。不过,我还是想一定是有解决办法。我会好起来的与以往任何时候都不能卸载的外部主权财富基金,如果这是唯一的出路,但我仍然无法想出一个办法返回到SWF,这是previously加载。

Now, I would like to add a reset button that allows the user to return to the start of the first SWF from any other SWF file to restart the app. Unfortunately, it seems that whenever I try to load a SWF that has previously been loaded, nothing happens. I have read that unloading and reloading SWFs is not permitted on IOS and the fact that you are limited to one ApplicationDomain on IOS makes things difficult. However, I am still thinking there must be some workaround. I'd be okay with not ever unloading the external SWFs if that is the only way, but I still can't figure out a way to return to a SWF that was previously loaded.

有谁知道的一种方式返回到SWF,这是在IOS pviously装有Adobe AIR的$ P $?

Does anyone know of a way to return to a SWF that was previously loaded in IOS with Adobe Air?

推荐答案

我是能够解决重装SWF的W / O ABC(无code!)的问题,我解释这一切在我的博客( http://www.eqsim.com/blog/?p=400 ),但也只是给计算器上的code:加载和重新加载外部SWF在空气中的iOS WF-在空中换IOS / 22046009#22046009

I was able to solve the problem of reloading SWF's w/o ABC (no code!), I explain it all on my blog (http://www.eqsim.com/blog/?p=400) but also simply give the code on StackOverflow: Load and reload external SWF in AIR for iOS wf-in-air-for-ios/22046009#22046009

现在的Adobe已经从SWF分离code和外部加载SWF的解决方案。不过,我们先解决它AIR 3.5通过一类只有code,然后加载SWF和code类,设置链接到加载的SWF。当我们需要更新到4.0,SWF重装,即使是纯粹的SWF资产,没有工作于所有情况,所以我们插入而去寻找解决方案,我引用上面。

Now Adobe has a solution for separating code from the SWF, and loading the SWF externally. However, we addressed it prior to AIR 3.5 by making a class for the code only, then loading the SWF and in the code class, setting a link to the loaded SWF. When we needed to update to 4.0, the SWF reloading, even pure SWF assets, was not working in all situations, so we plugged away to find the solution I reference above.

阅读全文

相关推荐

最新文章