useHandCursor on a MovieClip in AS3

To use a hand cursor on a MovieClip that already has event listeners - you simply need two lines of code to use a hand cursor:

myMC.buttonMode = true;
myMC.useHandCursor = true;

AS3 doesn’t automatically know a MovieClip is a button unless you:
1) Have already added mouse event listeners.
2) Tell myMC that its buttonMode = true.

Happy Scripting.

del.icio.us Slashdot Digg Facebook Technorati Google Yahoo


About this entry