Im working on a script where you would have a disk and it would keep spinning, but when you clicked on it it would stop, and then you could rotate it like a turntable. I tried using some trigonometry but that made the disk turn to the mouse when ever i clicked on it, which doesnt normally happen when you try and spin it. Heres what i have, but i havent thought of a way to drag it without it sticking to the mouse x/y.
spinning = false;
disk.onEnterFrame = function() {
if (!spinning) {
disk._rotation += 2;
}
this.onPress = function() {
spinning = true;
};
this.onReleaseOutside = this.onRelease=function () {
spinning = false;
};
};