# Nested movieClip and attachMovie

**URL:** <https://forum.kirupa.com/t/nested-movieclip-and-attachmovie/273801>\
**Category:** flash\
**Created:** [October 21, 2008, 3:52am UTC](https://forum.kirupa.com/t/nested-movieclip-and-attachmovie/273801 "2008-10-21T03:52:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Standard\_Deluxe](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Standard\_Deluxe](https://forum.kirupa.com/u/Standard_Deluxe)\
**Post date:** [October 21, 2008, 3:52am UTC](https://forum.kirupa.com/t/nested-movieclip-and-attachmovie/273801/1 "2008-10-21T03:52:22Z")

</div>

Hi

I’ve created an empty movie clip at the root level called ‘folio’, to which I’ve attached a movieClip, ‘press\_1\_large’, using attachMovie.

Nested within this movieClip is another called ‘close\_btn’, with an instance name of ‘close\_btn’. Both have their linkage set to export for ActionScript.

I need to attach an onRelease function to this nested movieClip. Can anybody tell me how to access it? I’ve tried:

\_root.folio.press\_1\_large.close\_btn.onRelease = function () {  
function here  
}

without success.

Any help would be appreciated - I’ve been stuck on this for two days!

Thanks
