# Custom cursor dropTarget problem

**URL:** <https://forum.kirupa.com/t/custom-cursor-droptarget-problem/248508>\
**Category:** Uncategorized\
**Created:** [January 9, 2008, 12:30am UTC](https://forum.kirupa.com/t/custom-cursor-droptarget-problem/248508 "2008-01-09T00:30:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muttley66](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Muttley66](https://forum.kirupa.com/u/Muttley66)\
**Post date:** [January 9, 2008, 12:30am UTC](https://forum.kirupa.com/t/custom-cursor-droptarget-problem/248508/1 "2008-01-09T00:30:17Z")

</div>

I’m having trouble implementing custom cursors.  
so far, I’ve hidden the standard one, and got a cursor that can even change depending on status. But now my drag and drop (droptarget) doesn’t seem to work. Anyone got any ideas?? Anything gratefully appreciated.

This is a bit of what I’ve got:

\_root.cursor\_mc.swapDepths(1000);

\_root.hotspot\_mc.onRollOver = function() {  
\_root.cursor\_mc.gotoAndStop(“red”);  
}  
\_root.hotspot\_mc.onPress = function() {  
\_root.cursor\_mc.gotoAndStop(“blue”);  
}  
\_root.hotspot\_mc.onRelease = function() {  
\_root.cursor\_mc.gotoAndStop(“red”);  
}  
\_root.hotspot\_mc.onRollOut = \_root.hotspot\_mc.onReleaseOutside = function() {  
\_root.cursor\_mc.gotoAndStop(“white”);  
}

boot\_mc.onPress = function():Void {  
xstart = this.\_x;  
ystart = this.\_y;   
this.swapDepths(this.getNextHighestDepth());  
this.startDrag(true);  
};

boot\_mc.onRelease = function():Void {  
this.stopDrag();  
if (eval(boot\_mc.\_droptarget) == bootTarget\_mc) {  
this.enabled = false;  
this.\_x = 679.8;  
this.\_y = 268.2;  
}  
}
