What do i need to do to have a movie clip follow my mouse around the stage? Thanks
Printable View
What do i need to do to have a movie clip follow my mouse around the stage? Thanks
you need to set the _x and _y property of the mc to the _xmouse and _ymouse
mcName.enterFrame= function(){
this._x= _xmouse;
this._y= _ymouse;
}
I am not sure, but if the code of dnystwn doesn't work, try this:
code:
mcName.onEnterFrame= function(){ //onEnterFrame instead of enterFrame
this._x= _root._xmouse; // added _root for absolute
this._y= _root._ymouse; // added _root for absolute
}