# ASHelp

**URL:** <https://forum.kirupa.com/t/ashelp/323426>\
**Category:** flash\
**Created:** [June 30, 2011, 5:43am UTC](https://forum.kirupa.com/t/ashelp/323426 "2011-06-30T05:43:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joachym](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@joachym](https://forum.kirupa.com/u/joachym)\
**Post date:** [June 30, 2011, 5:43am UTC](https://forum.kirupa.com/t/ashelp/323426/1 "2011-06-30T05:43:52Z")

</div>

Hi,  
I am fighting against this:  
I have a script inside a movieclip. There are a few children, too. Each child contains other movieclip whose instance name is “masker” and a button.  
The script reads:

…  
…  
//when I click the button…

trace(e.target.parent.parent.getChildAt(3).getChildAt(0).name);  
or  
trace(e.target.parent.parent.getChildAt(3).masker.name);

//these two work perfectly but,

trace(this.getChildAt(3).getChildAt(0).name); //which is the same object  
or  
trace(this.getChildAt(3).masker.name);

//don’t work…

Once I need to call the masker from inside (button click) and second time I need to call it dynamically from outside…and this doesn’t work

thak you for any suggestion
