Skip to main content
Inspiring
March 26, 2015
Question

A Way To Strip Out ActionScript Code?

  • March 26, 2015
  • 1 reply
  • 1377 views

Hi,

Since iOS does not allow AS code in any externally loaded assets, is there any programable way or existing utility that would be able to strip AS code from existing SWF files in order to make them iOS safe? We have lots of SWF assets that contain some minor AS code that is needed for their use on the web, but in order to repurpose these assets for mobile use they have to be edited. It would be a HUGE time saver if there was tool to batch strip this out.

thx

This topic has been closed for replies.

1 reply

Participating Frequently
March 27, 2015

I though this behaviour (allow AS in external assets) was changed in AIR 3.6 or 3.7 according to this link:

actionscript 3 - AIR 3.6 iOS - Load external SWF with ABC - Stack Overflow

leejkAuthor
Inspiring
March 27, 2015

I don't think so... it still requires that the external swf's code be extracted and compiled into the main swf. That's fine if you have a handful of external swf files, but I have hundreds.

The code I'm talking about needing to strip out is just some basic stop() and SecurityDomain calls... it's not required for the external swf to function inside the main swf. It would be ideal if the packager could do this WITHOUT adding the code to the main swf file, but I don't see a way to do that now.

Colin Holgate
Inspiring
March 27, 2015

There is an option in ADT that lets you publish and app and to create code-stripped swfs that will live on a server somewhere. I haven't tried this yet, but you would think that the stripped swfs could be used as if they never had code in them. Anyway, here's the full article on it, maybe you could leave the code in the swfs and publish the app as described in the article:

http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air-apps-on-ios/