# Stange cursor problem

**URL:** <https://forum.kirupa.com/t/stange-cursor-problem/170503>\
**Category:** Uncategorized\
**Created:** [November 26, 2005, 9:09pm UTC](https://forum.kirupa.com/t/stange-cursor-problem/170503 "2005-11-26T21:09:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g5604](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@g5604](https://forum.kirupa.com/u/g5604)\
**Post date:** [November 26, 2005, 9:09pm UTC](https://forum.kirupa.com/t/stange-cursor-problem/170503/1 "2005-11-26T21:09:02Z")

</div>

Hi,

i am trying to create a drag and drop with a custom cursor: heres my code:  
it works great until i try to add the custom cursors (last three functions) then the drop target fails to work! any ideas??

left\_bar.sat\_drag.\_alpha = 0;  
left\_bar.sat\_drag.onPress = function() {  
if (menuopen == true) {  
hand\_mc.nextFrame();  
this.startDrag();  
left\_bar.sat\_drag.\_alpha = 100;  
hand\_mc.nextFrame();  
}  
};  
left\_bar.sat\_drag.onRelease = left\_bar.sat\_drag.onReleaseOutside=function () {  
stopDrag();  
if (this.\_droptarget == “/hit\_area”) {  
this.onTarget = true;  
trace(“hit”);  
this.\_x = -1;  
this.\_y = 42;  
left\_bar.sat\_drag.\_alpha = 0;  
hand\_mc.prevFrame();  
} else {  
this.onTarget = false;  
Mouse.show();  
hand\_mc.\_visible = false;  
this.\_x = -1;  
this.\_y = 42;  
left\_bar.sat\_drag.\_alpha = 0;  
hand\_mc.prevFrame();  
}  
};  
left\_bar.sat\_drag.onMouseDown = function() {  
//this variable tells us if the mouse is up or down  
mousePressed = true;  
};  
left\_bar.sat\_drag.onMouseUp = function() {  
mousePressed = false;  
};  
hand\_mc.onEnterFrame = function() {  
this.\_x = \_xmouse;  
this.\_y = \_ymouse;  
};  
left\_bar.sat\_drag.onRollOver = function() {  
Mouse.hide();  
hand\_mc.\_visible = true;  
};  
left\_bar.sat\_drag.onRollOut = function() {  
Mouse.show();  
hand\_mc.\_visible = false;  
};
