# Help loading MovieClip buttons

**URL:** https://forum.kirupa.com/t/help-loading-movieclip-buttons/269908
**Category:** Uncategorized
**Created:** [September 3, 2008, 12:23am UTC](https://forum.kirupa.com/t/help-loading-movieclip-buttons/269908 "2008-09-03T00:23:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![beard86](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beard86](https://forum.kirupa.com/u/beard86)
#### Post date: [September 3, 2008, 12:23am UTC](https://forum.kirupa.com/t/help-loading-movieclip-buttons/269908/1 "2008-09-03T00:23:28Z")

</div>

Hi, I’m trying to use a movieClip as a button and want to create a function that removes the movieClip onRelease and loads a new button. and vice versa, every method I’ve tried either removes the movieClip completely or loads it on top of the old movie . I’m using the attach movieClip method…  
if any one can show me where I’m going wrong I’d really appreciate it…  
Here is my code:

mb11.onRelease = function() {  
\_root.attachMovie( “bb1”, “bb11”, this.getNextHighestDepth );  
mb11.removeMovieClip();  
TweenLite.from(container\_mc, 1, {\_y:0, ease:None});  
TweenLite.to(container\_mc, 1, {\_y:-480, ease:Bounce.easeOut});  
}

```auto
mb11.onRelease = function() {
_root.attachMovie( "bb1", "bb11", this.getNextHighestDepth );
mb11.removeMovieClip();
    TweenLite.from(container_mc, 1, {_y:0, ease:None});
        TweenLite.to(container_mc, 1, {_y:-480, ease:Bounce.easeOut});
}

```
