Spinning a movie clip on center axis? (and more)
Hey fellas,
I have a movie clip on the stage, which is a record.
What I want, is for the user to be able to move the mouse over, click down, and spin the record left and right. To confuse matters, I would like to keep the record spinning (tapering to a stop) after they let go and flick the cursor across the screen. So if they hold the mouse down, the record will rotate with the mouse. and perhaps some lag which will be easy enough.
Anyone know how to do this? I also need to set a maximum velocity (?), whereby when it is spun hard enough, an event is triggered.
I guess the most essential thing is to be able to rotate the object, with tapering etc being secondary. I'm told it uses fairly simple pythagoras etc, but i'm yet to even use a simple rotate command.
My teacher did send a good detailed example, but I had a fair bit of difficulty making heads or tails given that there were rotation limits imposed, etc
Any ideas? cheers
|