claus / as3swf

Low level Actionscript 3 library to parse, create, modify and publish SWF files.
MIT License
526 stars 127 forks source link

Include actionScript #30

Closed guzuligo closed 11 years ago

guzuligo commented 11 years ago

Is there a way to include actionScript or to include internal swf?

claus commented 11 years ago

Can you be more specific?

guzuligo commented 11 years ago

I'd like to create a flash file capable of creating SWFs, or just a modified versions of SWFs. It is enough for me to just be able to modify some text in an SWF file.

Let's say for example I made a game and I want people to edit the levels of that game. All the levels would be made in a form of String. Then everyone can upload the modified game. (Note that this is just an example, not my real use case.)

claus commented 11 years ago

as3swf can parse and publish AVM1 bytecode (ActionScript 1 and 2), but not AVM2 bytecode (ActionScript 3). It doesn't support AVM2 bytecode because there is already a very good library out there that does that and that you can use in combination with as3swf: http://www.as3commons.org/as3-commons-bytecode/

Neither as3swf nor as3commons bytecode can decompile/compile ActionScript sourcecode though.