Skip to main content
Frédéric C.
Inspiring
November 6, 2011
Question

No more Uncompiled ActionScript warning on iOS with AIR 3?

  • November 6, 2011
  • 1 reply
  • 2063 views

Hi!

With previous versions of Air on iOS, when I was loading an external SWF that was containing library symbols using linkage names, I was getting a popup message saying that uncompiled actionscript was not allowed on this system. It was really a pain, since it was not possible to use the class system of AS3 to instanciate several instances of the same object. So I had to create all the instances on my stage in the IDE, and manipulate them using GetChildByName() in my pure AS3 code.

Today I made some tests, and didn't realize that my SWF file was containing some symbols with a linkage name. And it was working fine! With previous versions of AIR, I was getting an instant warning message, and the app was stuck.

So I made further tests, and now I can load an external SWF even containing AS3 code on the timeline, and it works!! Really I don't know what to think. This is wonderful news, because now we can really implement iOS apps the same way we would on any other platform. But I also know that this previous behaviour was due to some security reasons, to prevent apps made with AIR to download some external malicious code contained in an external SWF.

So my question is: is it allowed by Apple, or will my app be rejected? Or maybe this limitation is now applied to really external SWF (like something hosted on a remote server), and AS code is accepted for SWF files that are packaged locally into the app?

I'd really like to have Adobe employee's feedback on this, please.

Thank you!

Frédéric

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
November 6, 2011

I will probably test this for myself anyway, but can you check to see what happens if you build as AIR 2.7? Which version are you currently trying?

Frédéric C.
Inspiring
November 6, 2011

Hmm good idea Colin. I reverted back to AIR 2.7 (just by renaming my Flex folder, I hope this is enough to clean previous built code), and it still works!

I can't remember when I had the "Uncompiled ActionScript" issue, maybe it was with 2.6? Unfortunately I can't go older than 2.7 myself.

Anyway I just tested again on my iPhone 3GS (my previous test was on an iPad2), and I still have my intanciated movieclip playing once, and being stopped by a stop() instruction in its timeline. So it works...

Colin Holgate
Inspiring
November 6, 2011

I would start to doubt yourself now! Although I can imagine a change where it ignores code, I don't think they retroactively added an interpreter to the old version of AIR.

Is there any chance you're doing interpreter builds by accident?