Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Action Script Clock
Author: Waqar Shafi
| Website: non |
Step 1: Just make a hand for second and convert it into Movie Clip then give it an instance name like "SecondHand" similarly the other two hands for Minutes and Hours, and also instance name for both. just go in frames action and give this action script:
myDate = new Date();
hourHand._rotation = myDate.getHours()*30+(myDate.getMinutes()/2)
minHand._rotation = myDate.getMinutes()*6+(myDate.getSeconds()/10)
hand._rotation = myDate.getSeconds()*6;
and thats all.
| » Level Advanced |
|
|
Added: : 2003-09-16
Rating: 6.39 Votes: 34
Hits: 2283
|
| » Author |
|
I am waqar shafi and thats all.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (3 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|