See attached file. I’m trying to get a set of 3 buttons and their duplicates to act the same on actionscript events. 3 buttons working the same way (each button group should simultaneously rollover, rollout, and release at the same time. The file attached does start to work but I will need 3 unique button names.
Here’s the original tutorial I’m trying to rework:
http://www.fireflytutorials.com/flash-tutorials/dynamic-navigation-menu/
I attached the fla
stop();
function reActivateMenu () {
button1_mc.gotoAndStop(1);
button1_mc.enabled = true;
button2_mc.gotoAndStop(1);
button2_mc.enabled = true;
button3_mc.gotoAndStop(1);
button3_mc.enabled = true;
button1_mc2.gotoAndStop(1);
button1_mc2.enabled = true;
button2_mc2.gotoAndStop(1);
button2_mc2.enabled = true;
button3_mc2.gotoAndStop(1);
button3_mc2.enabled = true;
}
// ---- onRollOver, onRollOut, and onRelease event handlers for the buttons
button1_mc2.onRollOver = function() {
this.gotoAndStop(2);
};
button1_mc.onRollOver = function() {
this.gotoAndStop(2);
button1_mc2.onRollOver();
};
button1_mc2.onRollOut = function() {
this.gotoAndStop(1);
};
button1_mc.onRollOut = function() {
this.gotoAndStop(1);
button1_mc2.onRollOut();
};
function r() {
reActivateMenu();
button1_mc.gotoAndStop(3);
button1_mc.enabled = false;
button1_mc2.gotoAndStop(3);
button1_mc2.enabled = false;
contentBox_mc.gotoAndStop(1);
};
button1_mc.onRelease = button1_mc2.onRelease = r
///
button2_mc2.onRollOver = function() {
this.gotoAndStop(2);
};
button2_mc.onRollOver = function() {
this.gotoAndStop(2);
button2_mc2.onRollOver();
};
button2_mc2.onRollOut = function() {
this.gotoAndStop(1);
};
button2_mc.onRollOut = function() {
this.gotoAndStop(1);
button2_mc2.onRollOut();
};
function r() {
reActivateMenu();
button2_mc.gotoAndStop(3);
button2_mc.enabled = false;
button2_mc2.gotoAndStop(3);
button2_mc2.enabled = false;
contentBox_mc.gotoAndStop(2);
};
button2_mc.onRelease = button2_mc2.onRelease = r
///
button3_mc2.onRollOver = function() {
this.gotoAndStop(2);
};
button3_mc.onRollOver = function() {
this.gotoAndStop(2);
button3_mc2.onRollOver();
};
button3_mc2.onRollOut = function() {
this.gotoAndStop(1);
};
button3_mc.onRollOut = function() {
this.gotoAndStop(1);
button3_mc2.onRollOut();
};
function r() {
reActivateMenu();
button3_mc.gotoAndStop(3);
button3_mc.enabled = false;
button3_mc2.gotoAndStop(3);
button3_mc2.enabled = false;
contentBox_mc.gotoAndStop(3);
};
button3_mc.onRelease = button3_mc2.onRelease = r
hope the helppps!
exxie