Actionscript [MC follows mouse and hiding mouse cursor]
:: Lessons :: Advance Lessons
Page 1 of 1
Actionscript [MC follows mouse and hiding mouse cursor]
MC is the instance name of an object
[frame]
[frame]
- Code:
MC.onMouseMove = function(){ // if mouse moves
MC._x = _root._xmouse;
MC._y = _root._ymouse;
}
Mouse.hide(); // hide mouse
Wingedge- Admin
-
Number of posts : 77
Age : 40
Name : Sir Francis
Year Level : Instructor
Location : UC
Registration date : 2008-06-10
Credits
GP: 9999
Similar topics
» Actionscript [MC always faces the mouse]
» Actionscript [Firing Projectiles]
» Actionscript [Variable Declaration]
» Actionscript [Collision of 2 Movie Clips]
» Actionscript [Moving Movie Clips using Keyboard]
» Actionscript [Firing Projectiles]
» Actionscript [Variable Declaration]
» Actionscript [Collision of 2 Movie Clips]
» Actionscript [Moving Movie Clips using Keyboard]
:: Lessons :: Advance Lessons
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|