Hey…
I’m trying to add a tooltip of sorts to a mc. the mc has the buttonMode set to true and when i ROLL_OVER it i want it to display another movie clip as a tooltip…
I’ve worked out how to do this with startDrag. The problem is that unless i remove the event listener for ROLL_OVER the mouse flickers and won’t work properly. I fixed this by removing the event listener in the same function, which works great. The problem is that i have to add and event listener for ROLL_OUT, but the flickering starts again when its added… can anyone help??
here’s the code i have so far:
clapperHit_mc.addEventListener(MouseEvent.ROLL_OVER, videoCursor);
clapperHit_mc.buttonMode = true;
function videoCursor(event:MouseEvent):void
{
videoCursor_mc.startDrag(true);
videoCursor_mc.visible = true;
videoCursor_mc.gotoAndPlay(1);
clapperHit_mc.removeEventListener(MouseEvent.ROLL_OVER, videoCursor);
clapperHit_mc.addEventListener(MouseEvent.ROLL_OUT, videoCursorOut);
}
function videoCursorOut(event:MouseEvent):void
{
videoCursor_mc.stopDrag();
videoCursor_mc.visible = false;
videoCursor_mc.gotoAndStop(1);
clapperHit_mc.addEventListener(MouseEvent.ROLL_OVER, videoCursor);
clapperHit_mc.removeEventListener(MouseEvent.ROLL_OUT, videoCursorOut);
}