This content has been marked as final. Show 7 replies
with actionscript you can iterate through every object/variable in the swf and you access to all the methods and properties of objects/variables inherent in the objects'/variables' class.
you cannot pass code to a swf file and execute that code.
How would I go about doing any of this? From what I've researched, it seems like there is no generic way to do this, since the SWF must have explicitly stated that a function is callable externally. This would help me out because this seems like the first sign of hope since I started my project.
By the way, the target SWF is an unknown SWF that any flash designer/programmer will create (of course I would limit the swf to version requirements if needed). So I don't know anything about the contents of the SWF, and so I want to figure out where certain objects are at any given time while the swf is executing and/or their info, such as an image loader/swf loader/video loader's url, etc.
you don't need to know anything about the contents of the swf but you have to know the swf's file name or you can't access it.
once you know the file name you can load it into a _level or target movieclip in a master swf. the master swf will contain the code to iterate through the objects of the loaded swf.
the file name can be entered by a user with an input textfield or the browse method of the filerefence class or, if you are creating a jsfl application, the user can apply your application to their swf.
Ok but this might sound very amateurish (since I don't know anything about actionscript, and this was more of a last resort kind of solution), how do I iterate through all swf loader objects in the generic swf file?
Thanks for your patience and replies.
you can create a swf that contains:
Thanks kglad. This was very helpful!