# Custom Mouse Cursor Causing Shadow \*.?%$&

**URL:** https://forum.kirupa.com/t/custom-mouse-cursor-causing-shadow/317739
**Category:** flash
**Created:** [December 31, 2010, 8:04pm UTC](https://forum.kirupa.com/t/custom-mouse-cursor-causing-shadow/317739 "2010-12-31T20:04:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flashermx](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@flashermx](https://forum.kirupa.com/u/flashermx)
#### Post date: [December 31, 2010, 8:04pm UTC](https://forum.kirupa.com/t/custom-mouse-cursor-causing-shadow/317739/1 "2010-12-31T20:04:15Z")

</div>

I have created a file where I have a custom mouse cursor using the following code:

Mouse.hide();  
cursor\_mc.startDrag(true);

I have the mouse cursor in its own layer on the main timeline. In a layer below this one I have a movieclip symbol that when clicked I want to move to frame two of its own timeline and play.:jailbreak

The code I use for this is inside the movieclip symbol itself and it is:

squaremc.addEventListener(MouseEvent.CLICK, fl\_ClickToGoToAndPlayFromFrame\_2);

function fl\_ClickToGoToAndPlayFromFrame\_2(event:MouseEvent):void  
{  
gotoAndPlay(2);  
}

The problem is :evil: the darn thing only works when the cursor symbol is in a layer below the movieclip on the main timeline and not in a layer above the movieclip on the main timeline. It wont even work when the custom cursor is in the same layer as the movieclip symbol.

Is there a work around to this or something else I could try. In actioscript 2.0 this never was a problem.:drink:

Thanks. Any help would be appreciated. :sen:

I have attached the file in a zip folder. It is made with Flash CS5
