Skip to main content
Oct 13, 2011 4:20 PM UTC
Answered

External SWF in iPhone

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 is closed to new replies. Start a new post to keep the conversation going.
Colin Holgate
Colin HolgateCorrect answer
Inspiring
Oct 13, 2011 6:18 PM UTC

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


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

12 replies

Oct 13, 2011 5:54 PM UTC

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?

Translate
Colin Holgate
Inspiring
Oct 13, 2011 6:00 PM UTC

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

Translate
Oct 13, 2011 6:04 PM UTC

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.

Translate