
Welcome Guest
|
#1
|
|||
|
|||
|
Ok it kinda works but its going the wrong way.
Heres the code Code:
onClipEvent (load) {
X = this._x;
Y = this._y;
}
onClipEvent (mouseMove) {
Xm = _parent._xmouse;
Ym = _parent._ymouse;
Xdiff = Xm-X;
Ydiff = Ym-Y;
radAngle = Math.atan2(Ydiff, Xdiff);
this._rotation = radAngle*75/(2*Math.PI);
if(radAngle >0 && radAngle <50){
this._rotation = radAngle}
updateAfterEvent();
}Ive tried make it going 180 by changing this part of the code to: Code:
this._rotation = radAngle*180/(2*Math.PI);
if(radAngle >45 && radAngle <45){
this._rotation = radAngle}
updateAfterEvent();
}click here to see the rotating arm download the .fla here Last edited by forever : 01-03-2007 at 12:21 PM |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Movieclip to follow mouse | dalton | Newbies |
0 | 10-17-2008 02:42 PM |
| Question about mouse click & follow | Rudolf | Flash MX ActionScript |
0 | 05-22-2005 06:27 PM |




