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