# Movie clip button Help

**URL:** <https://forum.kirupa.com/t/movie-clip-button-help/42300>\
**Category:** flash\
**Created:** [February 7, 2004, 3:20pm UTC](https://forum.kirupa.com/t/movie-clip-button-help/42300 "2004-02-07T15:20:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubba1](https://avatars.discourse-cdn.com/v4/letter/b/b3f665/32.png) [@bubba1](https://forum.kirupa.com/u/bubba1)\
**Post date:** [February 7, 2004, 3:20pm UTC](https://forum.kirupa.com/t/movie-clip-button-help/42300/1 "2004-02-07T15:20:18Z")

</div>

Hi,  
I have a movie clip button that has 4 states:  
up, over, out, press, and disable.  
the action script inside the movie clip button looks like this:

stop();  
onRollOver = function () {  
this.gotoAndstop("\_over");  
};  
onRollOut = function () {  
this.gotoAndstop("\_out");  
};  
onPress = function () {  
this.gotoAndstop("\_press");  
};

on the stage, I have several instances of this button mc.  
when the button is clicked, it loads an external file into a container on the stage.

the action script looks like this.

myButtonMC\_1.onRelease = function() {  
\_root.holder1.loadMovie(“Image\_1.swf”);  
};  
myButtonMC\_2.onRelease = function() {  
\_root.holder1.loadMovie(“Image\_2.swf”);  
};  
myButtonMC\_3.onRelease = function() {  
\_root.holder1.loadMovie(“Image\_3.swf”);  
};

and so on.

Now what I am trying to do, is after let’s say, myButtonMC\_1 is clicked, it becomes disabled and the hand cursor disappears.

when myButtonMC\_2 is then clicked, I want myButtonMC\_1 to become enabled,  
and myButtonMC\_2 to become disabled etc.

I am having problems doing this.  
this is an example of the actionScript on the main stage.

myButtonMC\_1.onRelease = function() {  
\_root.holder1.loadMovie(“Image\_1.swf”);  
this.gotoAndstop("\_disable");  
this.enabled = false;  
this.useHandCurser = false;  
};

Can someone please help me?

Thank you in advance, I really appreciate it.

mk

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 4:39pm UTC](https://forum.kirupa.com/t/movie-clip-button-help/42300/2 "2004-02-07T16:39:37Z")

</div>

If that’s the actual code, you’ve forgotten the second “o” in your:

this.gotoAndstop("\_disable");

Don’t know if it’s that simple. Came back to edit, 'cause it looks like you’ve forgotten another one up near the top of your post.

Adam

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 7, 2004, 4:50pm UTC](https://forum.kirupa.com/t/movie-clip-button-help/42300/3 "2004-02-07T16:50:35Z")

</div>

Adam14, thanks for pointing that out. It was just a typo  
mk
