# Mouse.hide(); does not work - mouse cursor is still shown

**URL:** https://forum.kirupa.com/t/mouse-hide-does-not-work-mouse-cursor-is-still-shown/221860
**Category:** flash
**Created:** [April 8, 2007, 8:33pm UTC](https://forum.kirupa.com/t/mouse-hide-does-not-work-mouse-cursor-is-still-shown/221860 "2007-04-08T20:33:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)
#### Post date: [April 8, 2007, 8:33pm UTC](https://forum.kirupa.com/t/mouse-hide-does-not-work-mouse-cursor-is-still-shown/221860/1 "2007-04-08T20:33:22Z")

</div>

why mouse cursor does not hide ?  
the mc cursor to replace mouse cursor is shown together with it;  
what´s wrong?  
thanks

> onLoad = function () {  
> Mouse.hide();  
> cursor.swapDepths(200);  
> };

onEnterFrame = function () {  
cursor.\_x = \_xmouse;  
cursor.\_y = \_ymouse;  
};

onUnload = function () {  
Mouse.show();  
};
