# Analog clock

**URL:** <https://forum.kirupa.com/t/analog-clock/2914>\
**Category:** Uncategorized\
**Created:** [February 24, 2002, 5:59pm UTC](https://forum.kirupa.com/t/analog-clock/2914 "2002-02-24T17:59:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 5:59pm UTC](https://forum.kirupa.com/t/analog-clock/2914/1 "2002-02-24T17:59:09Z")

</div>

Supra you said something in the Best of Kirupa forum about a psuedo analog clock…i was wondering if you could just give me a nudge in the right direction to creating my own clock. thanks if you can. I wouldn’t ask, but the link in the Best of Kirupa Forum doesn’t lead anywhere…i guess that post was deleted…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 7:27pm UTC](https://forum.kirupa.com/t/analog-clock/2914/2 "2002-02-24T19:27:11Z")

</div>

I changed a tiny bit the end of Supra’s script :

```auto
 &nbsp &nbsp &nbsp &nbsp now = hours+":"+min+":"+sec+" "+ampm;\r\r&nbsp &nbsp &nbsp &nbsp seco._rotation = sec*6 ;\r\r&nbsp &nbsp &nbsp &nbsp minu._rotation = min*6 ;\r\r&nbsp &nbsp &nbsp &nbsp hour._rotation = hours*30 ;

```

Where seco, minu and hour are 3 clips (the 3 sticks). Is that what you wanted to know ?\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 8:01pm UTC](https://forum.kirupa.com/t/analog-clock/2914/3 "2002-02-24T20:01:02Z")

</div>

well i wanted to know how to start to create the clock. and i guess what you gave will will put me on the right track…but can you tell me why you multiplied \r\rsec_6\rMin_6\rhour\*30\r\r\rjust where you got those numbers from? and that will be good. i might be able to figure the rest out.\r\r **Nevermind Pom. thanks i understand now. that code helped a lot.**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 8:28pm UTC](https://forum.kirupa.com/t/analog-clock/2914/4 "2002-02-24T20:28:41Z")

</div>

yeah i get it now…i was trying to use the setProperty function…i understand now why that won’t work…lol…ok thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 8:33pm UTC](https://forum.kirupa.com/t/analog-clock/2914/5 "2002-02-24T20:33:17Z")

</div>

Using setProperty isn’t wrong at all, it’s just that you can do exactly the same with the dot syntax.

```auto
 setProperty("seco",_rotation,sec*6)

```

is the same as what I wrote…\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 8:51pm UTC](https://forum.kirupa.com/t/analog-clock/2914/6 "2002-02-24T20:51:50Z")

</div>

well the way i was doing it it wouldn’t work for me…🙂 but now I don’t know whats wrong with this…i can’t get it to work. should i have the 3 sticks inside of a larger movieclip that contains the code? \r\r **ok good. thats wut i’m doing…i must be missing something minor. Thanks pom…i’ll let you know how it turns out.**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2002, 8:59pm UTC](https://forum.kirupa.com/t/analog-clock/2914/7 "2002-02-24T20:59:48Z")

</div>

yep\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2002, 12:53am UTC](https://forum.kirupa.com/t/analog-clock/2914/8 "2002-02-25T00:53:03Z")

</div>

I did it!! YAY! i couldn’t figure out wut was wrong, i was getting the script right…but the MCs weren’t rotating right. Then i remembered to edit center.\r\r\<embed src=“[http://www.angelfire.com/dc/vidgame/images/movies/analogclock.swf](http://www.angelfire.com/dc/vidgame/images/movies/analogclock.swf)” height=200 width=200\>\</embed\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2002, 5:42am UTC](https://forum.kirupa.com/t/analog-clock/2914/9 "2002-02-25T05:42:55Z")

</div>

Nice, not Jubba. I didn’t want to tell you that trick, or I would have spoiled your fun, don’t you think ?\rpom 0] \rBy the way, the hour stick should be smaller than the minute stick 😃

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2002, 5:47am UTC](https://forum.kirupa.com/t/analog-clock/2914/10 "2002-02-25T05:47:34Z")

</div>

yeah i realized after i posted. but i figured oh well…i made a new one anyway…🙂 thanks again POM

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 4, 2002, 6:37am UTC](https://forum.kirupa.com/t/analog-clock/2914/11 "2002-03-04T06:37:28Z")

</div>

well can u get me the link from where we can create a clock aor some tutorial some where coz i need to create one badly and i serached kirupa but that post is not there plssssssss help me on this\rthnx in advance \rEbu

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 4, 2002, 10:41am UTC](https://forum.kirupa.com/t/analog-clock/2914/12 "2002-03-04T10:41:55Z")

</div>

Jubba wrote a great tutorial about it !\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 4, 2002, 2:17pm UTC](https://forum.kirupa.com/t/analog-clock/2914/13 "2002-03-04T14:17:47Z")

</div>

Hey EBU… heres the link to the tutorial:\r\r[www.angelfire.com/dc/vidg…orial.html](http://www.angelfire.com/dc/vidgame/tutorial.html)\r\rthat should help you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 6, 2002, 4:43am UTC](https://forum.kirupa.com/t/analog-clock/2914/14 "2002-03-06T04:43:59Z")

</div>

nice Tut “not juba”, I will play with that later 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 8, 2002, 8:17pm UTC](https://forum.kirupa.com/t/analog-clock/2914/15 "2002-03-08T20:17:44Z")

</div>

Nice tutorial, Not Jubba. I went through it and then advanced it a bit further to create this…\r\r\<embed src=http://home.earthlink.net/~niann/clock1.swf quality=high bgcolor=#FFFFFF WIDTH=100 HEIGHT=100\> \</embed\>\r\rIt seems to work for the most part. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 8, 2002, 8:42pm UTC](https://forum.kirupa.com/t/analog-clock/2914/16 "2002-03-08T20:42:48Z")

</div>

you were supposed to advance it. thats the point. 🙂 thats why the FLA i provided was just a bare minimum. nice clock

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 8, 2002, 9:15pm UTC](https://forum.kirupa.com/t/analog-clock/2914/17 "2002-03-08T21:15:21Z")

</div>

What do you mean, for the most part ?? Looks fine to me…\rpom 0] \rBy the way, I read somewhere that you could do the clock using the internal clock of the server, so that it gives the exact time of the server, not the time of your computer, that may be, well, wrong. PHP involved…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 8, 2002, 11:59pm UTC](https://forum.kirupa.com/t/analog-clock/2914/18 "2002-03-08T23:59:10Z")

</div>

Thanks a lot Jubba! The tutorial is now up on the site. You can view it from anywhere 🙂 \r\rNEXT UP: Pom’s tutorial and files!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 9, 2002, 12:10am UTC](https://forum.kirupa.com/t/analog-clock/2914/19 "2002-03-09T00:10:01Z")

</div>

I HAVE A TUTORIAL!!! YAY!! LOL SORRY I GOT EXCITED!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 9, 2002, 10:10am UTC](https://forum.kirupa.com/t/analog-clock/2914/20 "2002-03-09T10:10:05Z")

</div>

Did the same to me… 😃 \rpom 0]

[Next page](https://forum.kirupa.com/t/analog-clock/2914.md?page=2)
