A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to rotate clock hands??

  1. #1
    Junior Member
    Join Date
    Sep 2016
    Posts
    9

    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?

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    921
    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;
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    Junior Member
    Join Date
    Sep 2016
    Posts
    9
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center