Return Instance Name of Movieclip
Posted 1 July, 2007 in Other Stuff
Some Flash Action Script…
If you ever need to get the instance or parent name of a movie clip you can give the parent movie clip a variable in the first frame such as:
RetName = “sample1″;
Then you can call it at any time using the following method:
InstanceName = movieclip.RetName;
movieclip being the child.
I needed to do this recently for a flash game and only just worked this out.




