Here's a JSFL function for returning an Array of all elements with a given instance name in whole Flash Document.
I was trying to make something like JavaScript's "getElementsById()" method.
My intent was to make this compatible with both Flash 8 and CS3 IDEs.
Note: Unfortunately, this method will not find elements that are grouped.
Let me know if this is helpful or if there is a better way to do this.
Example:
fl.outputPanel.clear(); var items=findObjects("mybox"); var n=0; while(n < items.length){ items[n].rotation=45; n++; } alert("Found "+items.length+" items.");
Entries (RSS)