|
-
Senior Member
RollOver & RollOut too quickly
This has me puzzled:
code: thumbHolder.onRollOver = function() {
trace("rollover");
tempx = this._x;
tempy = this._y;
if (thumbAlign == "horizontal"){
_root.hoverme._x = Number (tempx) + 215;
}
if (thumbAlign == "vertical"){
_root.hoverme._y = Number (tempy) + 21;
}
_root.hoverme.gotoAndPlay(2);
}
thumbHolder.onRollOut = function() {
trace("rollout");
_root.hoverme.gotoAndStop(1);
}
Seems straight-forward enough and it does work, but as each thumbHolder is very close in proximity, the onRollover doesn't send _root.hoverme to frame 2 if you move from the cursor from one thumbHolder button to the next, too quickly (though the trace shows that the actual rollOver and rollOut DO activate).
Oddly enough, if I remove the RollOut completely, it works fine (but then I have no way of sending _root.hoverme to frame 1 when no thumbHolder is being 'rolled out', as there is no rollOut then).
Never come across this before ... anyone found a cure for this?
Last edited by ::bluemoth::; 09-07-2004 at 07:22 AM.
-
Have you tried putting the rollOut part of the script before the rollOver part?
-
Senior Member
For anyone in the same situation, try sending your rollOut to a frame that is AFTER the rollOver's current frame, and not BEFORE.
This seems to do the trick for me, and for others.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|