Tuesday, February 15, 2011

Custom cursor sample code


Custom cursor (Gloved hand)

//We need to create a layer for our mouse
//We need to draw our mouse and convert it to a movieclip
//Create a layer for Actions on top of the Mouse layer
//Tutorial for this code found on
//www.republicofcode.com/tutorials/flash/as3customcursor accessed March 4, 2010

Mouse.hide(); //This hides the default mouse cursor

Glovedhand_mc.startDrag(true); //This ensures the glovedhand_mc is dragged from its         //registration point. This will make it our mouse.



No comments:

Post a Comment