# Who's MovieClip am i in?

**URL:** <https://forum.kirupa.com/t/whos-movieclip-am-i-in/244698>\
**Category:** flash\
**Created:** [November 21, 2007, 12:08am UTC](https://forum.kirupa.com/t/whos-movieclip-am-i-in/244698 "2007-11-21T00:08:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)\
**Post date:** [November 21, 2007, 12:08am UTC](https://forum.kirupa.com/t/whos-movieclip-am-i-in/244698/1 "2007-11-21T00:08:40Z")

</div>

hi,

I’ve got this problem… I’m not sure how to explain it to yous… but eh… I’ll try my best… bear with me here… lol

I’ve got this clip which wants to know which movieclip it’s in… but it’s buried inside lots of other movie clips…

```auto
 e.g. _root ==> Movieclip1(instance name = MAINMC) ==> movieclip2 ==>movieclip3 ==> MovieClip4(the movieclip with the actionscript)

```

Movieclip4 wants to know what the instance name of Movieclip1 is…  
Movieclip4 is ALSO inside another bunch of movieclips this time…

```auto

e.g. _root ==> Movieclip1(instance name = MAINMC) ==> movieclip# ==> movieclip#==> movieclip#==> movieclip# ==> MovieClip4(the movieclip with the actionscript)

```

What actionscript can i use to ALWAYS find instance name of the movieclip JUST before the \_root?

Hope you guys know what i mean!
