Skip to main content
October 13, 2011
Answered

External SWF in iPhone

  • October 13, 2011
  • 1 reply
  • 1247 views

Due to the large size of my FLA file I had to chop it up to few bit-size files and use the external SWF option to dynamically load sections of my app (Adobe rep said that I can't exceed 180Mb in my FLA file..). So it's all working on my pc but when I upload it to the phone the SWF's are not loading.

I'm using this for code:

var myFireLoader:Loader = new Loader();

var urlFire:URLRequest = new URLRequest("External.swf");

myFireLoader.load(urlFire);

addChildAt(myFireLoader, 0);

And included the swf files in the publish dialog. Am I missing something?

Thanks,

Dani

This topic has been closed for replies.
Correct answer Colin Holgate

Is this just an iPhone thing? it works fine on my pc.


It's just an iOS thing. It would work ok on Android.

1 reply

October 13, 2011

Isolating the problem I found out that the external swf will load fine as long as there is no code in it. Anyone has any idea what can I do to make this work?

Colin Holgate
Inspiring
October 13, 2011

It depends on what the code does. If it's just a stop() action, you could stop the swf when it gets loaded.

October 13, 2011

I have a lot of code on each swf. I didn't think there should be a problem with it..

But for the test I went and just included stop() and the swf didnot load. Then I removed it and it was fine.