Skip to main content
Inspiring
March 1, 2013
Question

Multiple Application Domain Error with Preloader

  • March 1, 2013
  • 4 replies
  • 1655 views

Hi all,

I'm attempting to upgrade to Air 3.6. My app runs as a swf on the web and also meant to be packaged as a "slow" build (not interpreter) for iOS since I need the performance of Starling. Since it's a fat app, so thus it has a preloader for the web, which works perfectly. However when I try to start the app in ios-debug on my iPad, I get:

[Fault] exception, information=Error: Error #3747: Multiple application domains are not supported on this operating system.

mPreloader = new PreloaderSwfEmbed();
mPreloaderLoader = Loader(mPreloader.getChildAt(0));        // need to wait until the swf loads before grabbing all the information from it
mPreloaderLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, EmbeddedPreloaderLoadCompleteCB);

On the first line of my code snippet here. How can I insert permission regarding multiple application domains for embedded swfs?

Thanks!

  ZS

This topic has been closed for replies.

4 replies

Zen SevenAuthor
Inspiring
March 1, 2013

Ok so I got the swf to load by changing the code above to the following:

          var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
               context.allowCodeImport = true;

               mPreloaderLoader = new Loader();
               mPreloaderLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, EmbeddedPreloaderLoadCompleteCB);
               mPreloaderLoader.loadBytes(new PreloaderSwfEmbed(), context);

But now when I run the app I get a message dialog on the iPad saying:

Uncompiled ActionScript

Your application is attempting to run uncompiled ActionScript, probably due to the use of an embedded SWF. This is unsupposed on iOS. See the Adobe Developer Connection website for more info.

And yes I am using Adobe Air SDK 3.6, and building with -swf-version=19, at least on the main swf. The other swf was made with an fla with Flash Pro.

Any help people? Why is this still not working? I thought it was fixed in 3.6. I must be missing something.

Thanks!

Nimisha1
Participating Frequently
March 4, 2013

With swf-version=19 multiple SWFs on iOS should definitely work.

Can you  provide me your app/sample app(source code ,swf, app-xml and assets/ane) @nimisha1@adobe.com so that I can give it a try?

Thanks,

Nimisha

Zen SevenAuthor
Inspiring
March 4, 2013

Hi Nimisha,

Thank you! I just sent you a stripped down sample app highlighting the problem from my corporate e-mail. Subject line ""My Sample Project: Multiple Application Domain Error with Preloader (ZenSeven)"

Regards,

  ZS