Return Instance Name of Movieclip

Posted 1 July, 2007 in Flash

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.

1 comment to “Return Instance Name of Movieclip”

flash design, May 1st, 2009 at 7:59 pm:

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

Your comment:


Help create a new web dsign and graphics forum!

Sell Your Pictures on the Web

SEARCH




CATEGORIES

LINKS