Guys, I promise this is my last question regarding the XML nav you guys made
I want the navigation to expand onRollOver not onRelease.
When i change it it doesn’t work, why not? This seems so simple but yet it won’t work
here’s some code
mySubButton.onRollOver = function() {
getURL(this.myUrl, this.myTarget);
trace(this.buttonLabel.text+" : "+this.myURL);
}
mySubButton.onRollOver = function() { this.glare.play(); }
mySubButton._x = this._x;
mySubButton._y = this._y + vSpacing*(j+1);
mySubButton.arrow.swapDepths(0);
mySubButton.arrow.removeMovieClip();
}
}
myButton.onRollOver = function() {
if (mainMenu.currentSubMenu != this){
mainMenu.currentSubMenu.arrow.setToRotateTo(0);
mainMenu.currentSubMenu = this;
var currButton = this;
mainMenu.onClosedMenu = function(){
this.offset = vSpacing * currButton.subMenus;
this.dropStart = currButton.ID;
this.currentSubMenu.createSubMenu();
currButton.arrow.setToRotateTo(90);
}
mainMenu.offset = 0;
}else{
mainMenu.currentSubMenu = null;
this.arrow.setToRotateTo(0);
mainMenu.offset = 0;
}
}
}else{
myButton.myUrl = menuItem*.attributes.URL;
myButton.myTarget = menuItem*.attributes.TARGET;
myButton.onRollOver = function() {
getURL(this.myUrl, this.myTarget);
trace(this.buttonLabel.text+" : "+this.myURL);
}
myButton.arrow.swapDepths(0);
myButton.arrow.removeMovieClip();
}
myButton.onRollOver = function() { this.glare.play(); }
myButton._x = 3
myButton._y = -2; // position
myButton.homePosition = myButton._y += vSpacing*i;
}
Thank you in advance