# Mouse help in AS3

**URL:** <https://forum.kirupa.com/t/mouse-help-in-as3/318861>\
**Category:** Uncategorized\
**Created:** [February 1, 2011, 6:56pm UTC](https://forum.kirupa.com/t/mouse-help-in-as3/318861 "2011-02-01T18:56:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krivia](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@krivia](https://forum.kirupa.com/u/krivia)\
**Post date:** [February 1, 2011, 6:56pm UTC](https://forum.kirupa.com/t/mouse-help-in-as3/318861/1 "2011-02-01T18:56:52Z")

</div>

I creat a custom cursor in Flash.

function inicialGames():void {  
cursor = new Cursor;  
addChild(cursor);  
Mouse.hide();  
stage.addEventListener(MouseEvent.MOUSE\_MOVE, dragcursor);  
}  
function dragcursor (e:MouseEvent) {  
cursor.x=mouseX;  
cursor.y=mouseY;

```
cursor.mouseEnabled=false;

cursor.updateAfterEvent;

```

}  
This work corectly.

But when add other object whit addchild();  
mouse cursor stay under the other object and is not visible, but when I click is work;

How i make a mouse cursor visible over the other object;
