I can’t get my button’s to trace out; it’s not reading my rollovers. When I manually write it out (bottom) it works. Any help with what’s wrong would be appreciated.
[SIZE=“1”]var btnAction:Array = new Array (homeBut, aboutBut, portBut, contBut);
// var btnAction:Array = [homeBut, aboutBut, portBut, contBut];
for (var i = 0; i < btnAction.length; i++) {
this.menuMC.btnAction*.onRollOver = this.menuMC.btnAction*.onDragOver = function() {
//this._parent.homeTxt.gotoAndStop(“on”);
trace(“bob”);
}
};[/SIZE]
Written out it works.
[SIZE=“1”]/*
this.menuMC.homeBut.onRollOver = this.menuMC.homeBut.onDragOver = function() {
this._parent.homeTxt.gotoAndStop(“on”);
};*/[/SIZE]