Return Instance Name of Movieclip

July 1 | Flash | 1 comment

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.



One Response to “Return Instance Name of Movieclip”

  1. flash design Says:

    I searched on google and I had a hard time located the right info….until I found your blog.

Leave a Reply