I always seem to have problems building drop down menus. The one im currently doing is driving me nuts. The rollover effects keep sticking to the on position meaning that 2 or more of the rollover states are on at the same time. Can anyone tell me where im going wrong?
if (this.over && this.ready){
play();
this.ready = false;}
if (!this.over && !this.ready){
play();
this.ready = true;
}
}
The above is the code attached to the dropdown menu buttons. Just doesnt seem to close them properly tough. Ive also attached the .fla. Really hope someone can help im going nuts!
Cheers
LK
Not witty enough to think of anything witty enough.
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes) {
this.nextFrame();
}
} else {
if (this._currentframe>1) {
this.prevFrame();
}
}
}
This is the code I prefer to use for any movieclip rollovers. I took the liberty of attaching it to your movie and adding some extra hit area to your sub-buttons so the user wont lose the menu when he tries to select your links.
But you will have to fix some things, I dont have the font you were using so its been reset to default again, and I increased the fps to 20 (im addicted to smooth animation its not my fault!).