JSAPI MovieClip Variable Definition Code

For those of you over the pain involved in defining all sub-components used in your main component at your variable definitions, you still may be suffering from all the work in actually defining them in the first place. Some forms can have many elements and toggling between your FLA to get the name of the next element, and then toggling back to your ActionScript to type it in can be a pain… specially if you decide to add or remove an element.

Therefore, here is some JSAPI code that will get all the current components of the current layer, and define them for you.

Read on…