Archive for June 5th, 2008

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.


  2. fl.outputPanel.clear();
  3. var items=findObjects("mybox");
  4. var n=0;
  5. while(n < items.length){
  6. items[n].rotation=45;
  7. n++;
  8. }
  9. alert("Found "+items.length+" items.");

Read the rest of this entry »

Comments 2 Comments »

Thanks for visiting