PDA

View Full Version : Button follows cursor around screen


i-guy
12-14-2009, 09:37 PM
I think this is an action script thing but im not sure.

As it is i have a close button. But it follows the cursor around the screen. I want to position it to a certain point on the screen. Anyone know how i can do that please? This is the actionscript code i think that does it:

//This positions the close button next to the cursor
function positionCursor(theX,theY) {
TweenMax.to(closeCursor_mc,0.3,{ _X:theX, _Y:theY, ease:Regular.easeIn});
}