Flash tutorial: Figure follow crusor
Uploader Comments (FlashLan)
All Comments (13)
-
it works , and here is the Action Script:
_root.onEnterFrame = function(){
X = _root._xmouse - 10
Y = _root._ymouse - 10
flower._x = flower._x + (X - flower._x)/10
flower._y = flower._y + (Y - flower._y)/10
}
-
it doesn't works
-
1. it dont work 2. why carnt u put the bludy code in the description -.-
-
Tutvid!
-
Why not put the code in the descrpition on Youtube! Much easier to understand.
-
You have to have your regist on the convert to symbol page in the middle if you dont, that was my problem
-
Who knows a good joint for tutoirals that tell you WHY it follows the mouse just HOW to make it follow the mouse?
but otherwise awesome :D
-
or u can do tis draw a movieclip
then put tis into the movieclip actionscript:-
onClipEvent (enterFrame) { this._x = this._x+(_root._xmouse-this._x
)/10; this._y = this._y+(_root._ymouse-this._y )/10; }
-
name the movieclip tat u drawn to "g"(without the quote)
put it in the frame actionscript:-
_root.onEnterFrame = function () { g._x=g._x+(_root._xmouse-_root
.g._x)/10 g._y=g._y+(_root._ymouse-_root .g._y)/10 };
im not able to make that parentesis
davix8 4 years ago
press "alt gr" + "7" to open "9" to loock
FlashLan 3 years ago