Hi,
I am trying to complete my navigation bar. I have the onRollOver / Out and Release states finished, my only problem now is that onRelease is not reversable. Once I click on another button, my previously pressed button is still in its down state. All my buttons have been created dynamically with no timelines involved. He is the button code that is within a for loop:
navBar["myBtn"+i].onRollOver = function() {
//create pointer mc over button
var pointer = this.attachMovie("buttonPointer", "pointer_mc", 21);
with (pointer) {
_x = this._width/2 -3;
_y = -2;
_alpha = 0;
}
this.onEnterFrame = function() {
if (this.pointer_mc._y<3) {
this.pointer_mc._y += 1;
this.pointer_mc._alpha += 20;
}
};
this.name_txt.textColor = 0xFFF0FF;
};
navBar["myBtn"+i].onRollOut = function() {
this.onEnterFrame = function() {
this.pointer_mc._y -= 1;
};
this.name_txt.textColor = 0x000000;
};
navBar["myBtn"+i].onRelease = function() {
this.name_txt.textColor = 0xFFFFFF;
this.enabled = false;
}
My question then, is how do you have your button return to its orginal state after another one is clicked.
Oh, i nearly forgot, is it possible too, to create an onRelease action seperate to the one in the above code (as long as i reference right) so that i can loadMovie etc.
cheers
Greg:huh: :huh: