|
-
[RESOLVED] MovieClip flickering with MOUSE_OVER
Hello,
I have a basic rollover function for my button, which seems to work, but whenever the mouse is moved to the right (but remaining inside the movieclip) the MOUSE_OUT function starts happening, and then when the mouse is stopped moving, the MOUSE_OVER code re-activates. I have no other movieclips in front of it, but it is masked using actionscript.
I don't understand why it's doing this, because the mouse never goes outside the area of the movieclip, so the MOUSE_OUT function shouldn't activate. The movieclip doesn't change side or shape at all, it just changes colour.
Does anyone know what's causing this problem?
Code:
rotator.leftArrow.addEventListener(MouseEvent.MOUSE_OVER, arrowHighlight);
rotator.leftArrow.addEventListener(MouseEvent.MOUSE_OUT, arrowDeHighlight);
function arrowHighlight(evt:MouseEvent) {
evt.target.gotoAndStop(2);
}
function arrowDeHighlight(evt:MouseEvent) {
evt.target.gotoAndStop(1);
}
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
|