4
votes

Evening, I have a SWF file (Flash file) that uses ActionScript 2 code.

What I like to do is convert it to a SWF file that uses Actionscript 3 code.

Note that I say "uses", not contains. The SWF may contain AS2 code still even though it will appear from the outisde that it contains AS3 code. This is because the code will never be processed, I just need to make the AS2 SWF file into a AS3 SWF file.

The ActionScript can be removed altogether from the resulting SWF file. That doesn't matter.

There is a way to do this, just a question of how.

How?

If anyone know how I should go about doing this please say. Perhaps you know of an already-existing application that removes all ActionScript code from a SWF file?

Just to be perfectly clear: I do not wish to convert the AS2 code into AS3 code. Although if that somehow is magically possible I wouldn't complain of course.

It's the SWF that must change to be defined as a AS3 SWF instead of a AS2 SWF file.

1

1 Answers

1
votes

So you don't have the source code, do you? I've never tried this myself, but I guess the code could be stripped with Flasm, and then convert the SWF movie by hex edition the header values that define the ActionScript and Flash Player versions.

Aside from code tags, and a lot of code bytecode, I don't know right now of any AS1 & 2 tag that isn't compatible with AVM2. Could be wrong tho.