# Custom Cursor Issue (AS2 Flash 8 pro)

**URL:** https://forum.kirupa.com/t/custom-cursor-issue-as2-flash-8-pro/329639
**Category:** flash
**Created:** [September 25, 2012, 8:51pm UTC](https://forum.kirupa.com/t/custom-cursor-issue-as2-flash-8-pro/329639 "2012-09-25T20:51:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Crux](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Crux](https://forum.kirupa.com/u/Crux)
#### Post date: [September 25, 2012, 8:51pm UTC](https://forum.kirupa.com/t/custom-cursor-issue-as2-flash-8-pro/329639/1 "2012-09-25T20:51:32Z")

</div>

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 =)

```auto
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.
    }
}

```
