Skip to main content
sergey_landar
Inspiring
January 6, 2010
Answered

Hand cursor on Movie Clip

  • January 6, 2010
  • 2 replies
  • 426 views

I have 2 movie clips. One its tree and sedond its toy. Now i playing with removeEventListener.. and try to make drag and drop. All must looks like i drag toy and drop to the tree. But when i drag my toy i don't see hand like when i move cursor on the html link. How i can create hand when i ower or drag my toy? Interesting make it with as3. Maybe using useHandCursor...

code:

toy.useHandCursor=true; // how?
toy.addEventListener(MouseEvent.MOUSE_DOWN, dragToy);
function dragToy(event:MouseEvent):void
{
     toy.startDrag();
     toy.removeEventListener(MouseEvent.MOUSE_DOWN, dragToy);
     toy.addEventListener(MouseEvent.MOUSE_UP, dropToy);
}
function dropToy(event:MouseEvent):void
{
     toy.stopDrag();
     toy.removeEventListener(MouseEvent.MOUSE_UP, dropToy);
     toy.addEventListener(MouseEvent.MOUSE_DOWN, dragToy);
}

This topic has been closed for replies.
Correct answer Andrei1-bKoviI

try:

toy.buttonMode = toy.useHandCursor = true;

2 replies

Ned Murphy
Legend
January 6, 2010

Try also including...

toy.buttonMode = true;

Andrei1-bKoviICorrect answer
Inspiring
January 6, 2010

try:

toy.buttonMode = toy.useHandCursor = true;