PDA

View Full Version : Retrieve function names in Flash project using JSFL


_Player_
07-08-2010, 02:50 PM
Hi everyone.

I'm trying to retrieve names of all action script functions in the current flash project using JSFL. Also I need only functions which return type is String.

Is it possible to use DOM to get functions list?




What I've achieved for now is going throw all frames in all layers and accessing actionScript property like this:
fl.getDocumentDOM().getTimeline().layers[i].frames[j].actionScript

And then parsing this text its possible to get functions list.
But seems like this solution is not the best one.