# Strange cursor

**URL:** <https://forum.kirupa.com/t/strange-cursor/286261>\
**Category:** flash\
**Created:** [April 13, 2009, 4:09am UTC](https://forum.kirupa.com/t/strange-cursor/286261 "2009-04-13T04:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gooo](https://avatars.discourse-cdn.com/v4/letter/g/eb8c5e/32.png) [@Gooo](https://forum.kirupa.com/u/Gooo)\
**Post date:** [April 13, 2009, 4:09am UTC](https://forum.kirupa.com/t/strange-cursor/286261/1 "2009-04-13T04:09:22Z")

</div>

Hi

I made a custom cursor - namely “cursor\_mc”.  
There are also 2 movie clips on my stage, - “but\_mc” and “block\_mc”.  
When but hits block, it should play frame 133.

My question:  
If I click on but and drag it to block, everything works perfectly, but when I click on but and release it somewhere else (not on block), my cursor disappears.

Why would something like this happen?

My code:  
stop();  
Mouse.hide();  
cursor\_mc.startDrag(true);

but\_mc.addEventListener(MouseEvent.MOUSE\_DOWN, startbut);  
function startbut(event:MouseEvent):void  
{  
but\_mc.startDrag();  
}

but\_mc.addEventListener(MouseEvent.MOUSE\_UP, stopbut);  
function stopbut(event:MouseEvent):void  
{  
but\_mc.stopDrag();  
if (but\_mc.hitTestObject(block\_mc))  
{  
gotoAndPlay(133);  
}  
}

Can someone please help me?

Thanks
