AIR 3.6 iOS - Load external SWF with ABC

2019-04-09 20:47发布

With AIR 3.6, is it finally possible to load an EXTERNAL swf file with AS3 code from the web and use it on the iOS device?

I see on their web page they say the new features include:

Packaging and Loading Multiple SWFs: This feature provides developers better memory management by allowing them to load the assets they need dynamically at ANY time from multiple SWFs and not have to load it up-front.

Just to make it clear, does this mean it only work for swfs packaged with the application, or also with externals swfs?

2条回答
时光不老,我们不散
2楼-- · 2019-04-09 21:13

This was just announced in AIR 3.7 not 3.6.

AIR 3.6 includes the ability to package multiple swf's with your iOS app but does not allow you to download them from an external server.

AIR 3.7 looks to give you the ability to load external swf's from a website.

Application developers will be able to host their secondary SWFs on an External server and load them on demand as per their application logic using this feature. The loading secondary SWFs which have any ABC code in AOT mode, which worked for just locally packaged SWFs earlier, will now work for loading SWFs externally as well

It looks like the bytecode will be contained in your application binary

During IPA packaging, ADT extracts the Actioscript code from all child SWFs which are specified within the sample text file, adds it to the final executable and moves the stripped SWFs into the "externalStrippedSwfs" folder created in the current working directory.

Check the release notes PDF for an example,

http://labsdownload.adobe.com/pub/labs/flashruntimes/shared/air3-7_flashplayer11-7_releasenotes.pdf

查看更多
仙女界的扛把子
3楼-- · 2019-04-09 21:18

It seems there is a requirement that the external SWF file is compiled for Flash Player 11.6, with an internal version number >= 19.

查看更多
登录 后发表回答