-
Why won't this work?
This code is attached to a MovieClip:
code: _x = _xmouse;
_y = _ymouse;
Why won't the MovieClip appear where the mouse is?
-
FK'n_dog
try -
onClipEvent(enterFrame){
_x = _root._xmouse;
_y = _root._ymouse;
}
-
code: this.onMouseMove = function() {
my_mc._y = this._ymouse;
my_mc._x = this._xmouse;
updateAfterEvent();
}
All on the main timeline and you're set...Much, much smoother movement too. No jerking.
Last edited by Sleeve; 03-04-2006 at 07:17 PM.
-
Okay thanks, I just forgot I had to put _root before _xmouse and _ymouse .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|