Artemix
Artemix

Reputation: 8655

"Uncompiled actionscript" error

I'm having the tittle error when I try to load a local swf file in the documents directory of my iPad. Web it works ok. the swf files have ABC code.

I'm using Air 3.7, which supposedly added a feature to allow this, however, I'm still having this error.

Maybe I'm not using the Air 3.7?, I'm using Flash Builder 4.7, and I overlaid the Air SDK following the Adobe site instructions.

I've set the swf version to 20 and I'm pointing to the new SDK folder.

Don't know what else to do.. is there a way to be sure of what version of Air is the app installed with?.

Thanks.

Upvotes: 1

Views: 771

Answers (1)

Jason Sturges
Jason Sturges

Reputation: 15955

External SWFs must be specified in the AIR Application Descriptor elements.

air-3.7-workflow

FileContainingListofSWFs.txt:

assets/Level1.swf
assets/Level2.swf
assets/Level3/asset/Level3.swf

AIR Application Descriptor XML:

<iPhone> 
    <externalSwfs>FileContainingListofSWFs.txt</externalSwfs> 
</iPhone>

From External hosting of secondary SWFs for AIR apps on iOS:

To use this feature, developer needs to specify a text file containing details of the SWF files to be stripped & externally hosted. This text file contains line separated paths of SWFs, which are to be externally hosted.

Upvotes: 1

Related Questions