Batch Prefix Class Linkage

I wrote an extension for flash, that allows you to batch prefix class linkage. Fx “Symbol 1” can be prefixed with “lib” and becomes exported as “lib.Symbol1”.

Normally doing this for 50 different symbols is a tedious task, so that’s why I wrote this extension.

Simply specify the prefix, select the desired library symbols and click ‘Execute’.

If you want to do this on all symbols, simply click ‘Execute on All’.

Download here.

Right now it automatically generates the symbol name in the exported class. So if you have a symbol called “Symbol 1” and an other one called the same inside a folder. Using the function on all functions will cause a problem.

Sadly it seems that the Flash IDE doesn’t want to cooperate with me. I tried to make a function that just selected all symbols in the library, so you could CTRL+click some of them to leave them out. But the library selection does not update visually when I run the JSFL script.
If you have a solution to this, please contact me or leave a comment.

Posted on November 12th, 2010
Filed under ActionScript 3, Flash, Tools, Util |

Leave a Reply