[SIZE=3]How do I drag along a circle?[/SIZE]
I’m trying to figure out how to drag something along a circle. Well, I know how to do it along a straight line but I’d like to do it along a circle!!! Please help!!! Anyways, this is how I did it for a straight line (if there’s anyone who’d like to tell me how to do the same thing for a circle I would be VERY happy. (-: ):
this.ratio = 0;
dragger.onPress = function() {
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function() {
ratio = Math.round(this._x);
};
};
dragger.onRelease = dragger.onreleaseOutside=stopDrag;
PS. Isn’t there some easier way to link an object to any kind of line so you can drag it along the line without having to come up with _x and _y and _cos and _sin coordinates?? I mean, when you can create motion guides - creating a drag-along-a-line-object should be a piece of cake, right???
PPS. You are welcome to take a look at my .fla!!! THANKS!!!