# Custom Mouse Pointer Problem?

**URL:** <https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685>\
**Category:** flash\
**Created:** [June 18, 2008, 10:36am UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685 "2008-06-18T10:36:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex298](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@alex298](https://forum.kirupa.com/u/alex298)\
**Post date:** [June 18, 2008, 10:36am UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685/1 "2008-06-18T10:36:19Z")

</div>

Hi,

I used a custom Mouse Pointer for a Flash Movie. However when I used the custom Mouse Pointer to click on a button, the mouse event cannot send to the function. Here’s my code:

> 

Mouse.hide();

function moveMouse (motion:MouseEvent):void{  
newMouse\_mc.x = mouseX;  
newMouse\_mc.y = mouseY;  
}  
stage.addEventListener (MouseEvent.MOUSE\_MOVE, moveMouse);

function clickButton (evt:Event):void{  
myField\_txt.text = “You clicked the button.”;  
}

myButton\_btn.addEventListener(MouseEvent.CLICK, clickButton);

How can I make the custom Mouse Pointer works same as a normal Mouse Pointer?

Thanks and best regards

Alex

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [June 18, 2008, 12:25pm UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685/2 "2008-06-18T12:25:15Z")

</div>

```auto
newMouse_mc.mouseEnabled=false;

```

---

<div class="post-metadata">

**Author:** ![alex298](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@alex298](https://forum.kirupa.com/u/alex298)\
**Post date:** [June 18, 2008, 2:13pm UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685/3 "2008-06-18T14:13:30Z")

</div>

Hi Felixz,

Thanks for your help. It works perfectly 🙂

Best regards

Alex

---

<div class="post-metadata">

**Author:** ![tpspoons](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tpspoons](https://forum.kirupa.com/u/tpspoons)\
**Post date:** [June 18, 2008, 3:51pm UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685/4 "2008-06-18T15:51:56Z")

</div>

Could you not use newMouse\_mc.startDrag (true)? Is there any difference in the two methods?

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [June 18, 2008, 3:58pm UTC](https://forum.kirupa.com/t/custom-mouse-pointer-problem/263685/5 "2008-06-18T15:58:48Z")

</div>

startDrag() should not be used for cursors regarding that startDrag() can be used on one object at a time and ity has dropTarget functionality
