JSFL: Timeline to AS2 Class

Just sharing a useful little JSFL script I made. This script started as a tool to output class vars for items on the timeline. It now actually creates an entire class that can be used as a starting point when coding up view components. Comments above each class var come from the timeline layer names, and the script even looks up assigned class names and adds appropriate import statements. It’s useful for simple code generation, but can also help you quickly spot clips without instance names and things of that sort. Output goes to the trace panel where you can copy and paste just the pieces you want.

To install, just download and install the MXP file, or grab the plain JSFL file and drop it in your flash commands folder. The javadoc template and everything is just inline with the JSFL. So, open it in your favorite javascript editor, and hack away to personalize it if desired. And, despite what Extension manager tells you, no flash restart is required.

Flash Extension: timeline_to_class.mxp
Source JSFL: [tkd] timeline_to_class.jsfl

One Response to “JSFL: Timeline to AS2 Class”

  1. travis Says:

    cool- works great!

Leave a Reply