Skip to main content
ElsaPrieto
Participating Frequently
March 2, 2016
Question

AIR19/20 crashing in AOT mode with Loader.load()

  • March 2, 2016
  • 1 reply
  • 2314 views

Hi,

In my iOS AIR app, I’m loading a local SWF file following the example provided in the Loader class documentation:

var loader:Loader = new Loader();

var url:URLRequest = new URLRequest("swfs/SecondarySwf.swf");

var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);

loader.load(url, loaderContext);

This code worked very well until I tried to update my AIR SDK.

Now the app is working fine with AIR 19 and 20 on Interpreter mode, but is crashing in AOT mode for both of the SDK. AOT mode is still working fine if I go back to AIR 18. The crash happens when I’m calling the load() function.

Do you have any idea about what is going wrong? Thanks a lot.

This topic has been closed for replies.

1 reply

Adobe Employee
March 2, 2016

Hi, elsaprieto

Please share us the dropbox link of the assets and AS code to reproduce this.

Also, kindly let us know the version of iOS you are facing this issue.

-Roshan

Air Adobe

ElsaPrieto
Participating Frequently
March 3, 2016

Hi Roshan,

Here is the link: Dropbox - SWFLoaderTest

After a few more tests I've figured out that it crashes only when two of the SWF are present (even if only one is loaded). If I delete the one that is not loaded, it works. I've included the FLA files that generate both of the SWFs.

I've tested on iPhone 5 with iOS9.2, iPad 3 with 9.1 and iPad 2 with 8.1, with the same results.

Thanks a lot.

Adobe Employee
March 7, 2016

Hi,

It looks like your swf in test folder  testSD and testHD has same class name (themeIcon_2) defined in it.

As a work around, kindly change the names of the classes inside the swf and try if that works for you.

We will fix this issue soon and let you know soon.

-Roshan

Adobe Air