# Movieclip as a button question

**URL:** <https://forum.kirupa.com/t/movieclip-as-a-button-question/203111>\
**Category:** Uncategorized\
**Created:** [October 7, 2006, 5:35pm UTC](https://forum.kirupa.com/t/movieclip-as-a-button-question/203111 "2006-10-07T17:35:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skellykitten](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@skellykitten](https://forum.kirupa.com/u/skellykitten)\
**Post date:** [October 7, 2006, 5:35pm UTC](https://forum.kirupa.com/t/movieclip-as-a-button-question/203111/1 "2006-10-07T17:35:37Z")

</div>

I have a movieclip working as a button on my stage, and I want it to trigger a nother movieclip from the library to load and play on release, in another location.  
I’ve tried to make an empty movieclip to attach the new movieclip to, no luck, I’ve tried to just attachMovie and put the x y coordinates and thats nt working either.  
The code I already have is

```auto
this.btn_4.onRelease= function(){
    _root.tm.tp_left.gotoAndPlay ("st_close");
    _root.tm.tp_right.gotoAndPlay ("st_close");
    
        
    
}

```

this part

```auto
 _root.tm.tp_left.gotoAndPlay ("st_close");
    _root.tm.tp_right.gotoAndPlay ("st_close");

```

is making another movieclip do something, and it’s workig fine, but I can’tfigure out how to get the other movieclip to play on the screen. When I drag it on and use

```auto
_root.where_info.where1.gotoAndPlay(2) 

```

it shows up behind the some of the other stuff, automatically plays. Even when I put

```auto

swapdepths(getNextHighestDepth());

```

Hopefully I’m making sense- I know It’s probably a dumb question but I’m still learning, and my books are confusing me even more!  
Thanks for helping:)
