Listing objects (TextFields, MovieClips etc) on the stage?

Hi!

I am building an application in flash that allows artist to design swiffs containing framebased animation and textfields or movieClips with textfields. The application will load the artists swf and then work as a tool for them to play the animations they created in the swf. It will also be able to fill the (empty) textFields with text.

The main issue here is that the artists know flash but not ActionScript so that is why the application exists. And that is why I need to, in some way, to:

  • extract the frameLabels from the swf (I have read some articles on that)
  • if the current frame is labeled check if there are any textFields on the stage and store their names in an Array
  • if there are any movieClips on the stage check if they contain any textFields, in that case store the names of the textFields and the path in an Array.

If this is impossible I will need to create some application where the artists define all of the frame labels and all of the textFields and outputs it to xml. But this will make the workflow a lot worse for the artists.

Any suggestions or ideas?

/Andreas

EDIT: I solved it with JSFL!!!