Skip to main content
Inspiring
February 24, 2014
Question

SWFs not loading in Air 4.0... for iOS

  • February 24, 2014
  • 1 reply
  • 506 views

Hi,

I've read some of the posts about the problem of SWFs not loading in iOS.  This seemed to have to do with the SWFs having code.  We removed code from the SWFs and In previous releases, using previous SDKs (I don't remember the last one that worked) we had everything working.  But in the latest version compiled with the latest SDK (4.0...) none of the SWFs load.

of course I'm learning about this late in the game.

One more piece of information.  I did a test with an application that just loads one codeless SWF and have exactly the same result. 

If anyone has any ideas, I would be very grateful.

Best regards,

Chris McLaughlin

This topic has been closed for replies.

1 reply

Inspiring
February 25, 2014

Hi,

So code or no code external SWFs require a loader context.

I borrowed this directly from a kglad response:

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

When I add the LoaderContext to the loader (at least with my experimental app) the SWF loads.

Also from kglad's example: yourloader.load(yourexternalswf.swf,lc);

Thanks kglad.