# CreateEmptyMovieClip woes

**URL:** https://forum.kirupa.com/t/createemptymovieclip-woes/273699
**Category:** flash
**Created:** [October 19, 2008, 7:12am UTC](https://forum.kirupa.com/t/createemptymovieclip-woes/273699 "2008-10-19T07:12:38Z")
**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 19, 2008, 7:12am UTC](https://forum.kirupa.com/t/createemptymovieclip-woes/273699/1 "2008-10-19T07:12:38Z")

</div>

Hi

I’ve created an empty movie clip on the stage called ‘photographs’, to which I’ve attached a movie which I’ve given the instance name ‘p1\_mc’. This movieclip contains another with an instance name of ‘p1\_mc\_base’, which in turn contains a third with an instance name of ‘close\_btn’.

I need to target ‘close\_btn’ to call an onRelease function. I’m thinking the path would be:

\_root.photographs.p1\_mc.p1\_mc\_base.close\_btn

which is borne out when I list the objects in the movie, but I can’t get it to work. I’ve used getNextHighestDepth() with the createEmptyMovieClip and attachMovie functions.

It’s driving me nuts ![](http://forum.kirupa.com/uploads/kirupa/4684/3090620a3b378922.gif) - can anybody help me out?

Thanks
