-
How to rotate clock hands??
First, I am using Flash CS6 with Actionscript 3 installed locally on a Windows 7 desktop machine
I am working on a small project that uses a clock face and I need to be able to rotate the clock hand around the clock face. I have started with a basic drag & drop structure and what I want to do is anchor / fix the clock hand at the center of the clock face and be able to drag & drop the hand radialy around the clock face.
Can any one point me in the right direction on how to approach this?
-
Senior Member
you just make an empty movie clip, and draw the hand there as if it is pinned to 0,0 point. then drop this movie clip on the clock face, give it instance name, like hourHand, and then you can do stuff like hourHand.rotation = 123;
-
Honestly I hopeing for something that used mouseX and mouseY while anchoring the registration point of the hour hand in place, fixing its location causing the hand to rotate around its registration point.
HourHand.png
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|