ActionScript 2 Flash 8 Pro
Stage = 1600 x 900
ClipEvent MC = 1595 X 898 @0%alpha, aligned to stage vertical/horizontal
I have menu items at tippy top and bitty bottom of my stage.
If mouse is moved outside the player too fast the cursor is still floating in place. Is there a way I can go about doing this to ensure the custom cursor is not visible on my stage if the mouse is not in the MC/player? Also, if there is a way I can do this w/o having a 1595X898 MC in my stage that’d be awesome. I already have enough time line layers as is.
Thanks =)
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
Mouse.hide();
setProperty("_root.myCursor", _x, _root._xmouse);
setProperty("_root.myCursor", _y, _root._ymouse);
} else {
Mouse.show(); //Not really needed but I wasn't using exact fit on html+swf publish and a bit of the grey stage was still showing. It was messing with me.
setProperty("_root.myCursor", _x, -100);
setProperty("_root.myCursor", _y, -100); //I tried something to the effect of target._visible = false but it just blinked in place once you rolled moused out of the MC.
}
}