Bug with rollover effect....
//EDIT: Found the solution, see second post
Howdy, I'm trying for a mouseover effect on a dynamically generated menu, a mock-up can be found here.....
http://www.scraf.com/rollover.html
Works fine, only problem is that if you're quick enough with your mouse you can "rollOut" leaving the button in "rollOver" state.
Anyone have a cunning workaround for this one?
Two button's, here's the code....
code:
button_btn.onRollOver = function(){
this._y = -200;
rollover_btn._y = 200;
}
rollover_btn.onRollOut = function(){
this._y = -200;
button_btn._y = 200;
}
TIA (MX 2004)