Hi Kirupians,
For some reason my buttons do not want to be disabled??
And I am getting blind from looking at it and finding the problem.
Anyone has some insight?
Thanks in advance
buttsArray = new Array();
buttsArray = ["btn1", "btn2", "btn3", "btn4", "btn5"];
function makeButtons() {
for (var i = 0; i<buttsArray.length; i++) {
var btn = galBtnBase.attachMovie("galBtn", "galBtn"+i, i+100);
btn.id = i;
btn._x = Math.floor(i)*26;
btn.onRelease = function() {
trace("btn"+this.id);
disButtons(this.id);
container.loadPhoto(pathToPics+"image0"+(this.id)+".jpg");
};
btn.onRollOver = btn.onDragOver=function () {
this.gotoAndStop(2);
};
btn.onRollOut = btn.onDragOut=function () {
this.gotoAndStop(1);
}
}
function disButtons(d) {
for (var i = 0; i<buttsArray.length; i++) {
if (i != d) {
this[btn*].enabled = 1;
this[btn*].gotoAndStop(1);
} else {
this[btn*].enabled = 0;
this[btn*].gotoAndStop(3);
}
}
}
}