View Full Version : drag and rotate clock hands
Jill
October 3rd, 2002, 10:55 AM
I am stuck at the mo trying to create an interactive clock. I have got it to do everything, but theres a bit i need help with.
I would like the user to be able to drag and rotate the clocks hands clockwise 360 degrees.. ive got the hands to rotate by themselves what do i need to do?
pom
October 3rd, 2002, 12:04 PM
Check this: http://www.actionscript.org/tutorials/advanced/Mouse_Angle_Detection_II/index.shtml
pom :asian:
Jill
October 4th, 2002, 05:27 AM
thanks that's great!
any ideas on how i could stop the arrow rotating for example when the user clicks the mouse. As the idea is to make the arrow into clock hands
cheers
Scootman
October 5th, 2002, 12:05 AM
can you make it so its on(mouseDown) instead of on(mouseMove) so that way it will only move when you have the mouse button down?
i havent actually tried it... but its an idea... also another thought... if you want more than one hand... make the arrows buttons... and do on(press) and put the code... so you can move each one
pom
October 5th, 2002, 04:45 AM
Yep, that's the idea. Are you working with MX or Flash 5?
Jill
October 7th, 2002, 04:45 AM
im working with flash 5. ive changed the arrow to a button within a movieclip and added the actionscript to it but it doesn't rotate as easily as before. Can anyone help?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.