I have a program consisting of multiple SWF's. An AS2-SWF loads a bunch of AS1-SWFs. It's a crappy program. I'd like to specify the GUI in MXML and perhaps refactor some code to AS3. However, converting all of the 300+ symbols to AS3 or whatever is undoable.
What are my options in converting to AS3/Flex/MXML? The app is very simple, only also quite large. It consists only of buttons, backgrounds and attention-texts. All the button texts are in XML files.
I want to turn this into pretty code ASAP but also controlled so the code becomes:
Of course doing this is on my own initiative, if it'll take more than a week, I won't be able to find the time.
Regards, Jurgen
This might help:
http://flexman.info/2009/03/29/as3converter-an-ant-task-small-collection-of-as3/
It's mainly for AS2 code, so FLA editing is out of the question. But you should certainly look into JSFL.
There are some pretty good scripts out there already dealing with something like this:
http://bumpslide.com/blog/2009/03/07/jsfl-class-generator/
What this command does is that it looks through your library and finds all library items that have a custom linkage class name. If the class extends flash.display.MovieClip (or if the base class is blank), it checks to see if a classfile exists, and if not, it creates it for you. When it does this, the script looks at all the items on the timeline and adds relevant properties to your class. If these clips are instances of other components, they will be typed as such, and relevant import statements will automatically be added to your class. If your component is set to extend some other class (for instance, com.bumpslide.ui.Button), no class will be generated. Class files will be written to the correct package location inside the first custom class path defined in your publish settings.