deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour
[x]
Download File
SWF, 5.9 KB
more ▶

More from ~YesOwl

Featured in Groups:

Details

December 18, 2010
5.9 KB
250×250
Link
Thumb

Statistics

Comments: 6
Favourites: 7 [who?]

Views: 340 (0 today)
Downloads: 88 (0 today)
[x]
:iconyesowl:
A flash animated clock.
Add a Comment:
 
love 0 0 joy 1 1 wow 0 0 mad 0 0 sad 0 0 fear 0 0 neutral 0 0
:iconscholarwarrior-lad:
~scholarwarrior-lad Feb 20, 2011  Hobbyist General Artist
Ooh nice!
Reply
:icontanhc14:
You should make the dynamic text non-selectable, just a thought =) nice job btw, how did you get the real time? i've never really tried it before =/
Reply
:iconyesowl:
Thanks for the cool comment, and thanks for the tip on the text, I never noticed that it could still be selected! I'm still a novice really, so I'm glad you mentioned it. :)

The way I got the time was to put a date object into a variable: "var now: Date = new Date();" then made three more from that: "var hours = now.getHours();", "var minutes = now.getMinutes();" & "var seconds = now.getSeconds();" then sent them to the dynamic text field on the stage. There's a bit more to it then that obviously but that's the bone's of it. Hope that make's sense? I can message you the actionscript (AS3.0) if you want to see it all. :D
Reply
:icontanhc14:
:o, nevermind, im more of an AS2.0 Scripter =/ gonna have to learn 3.0 someday though
Reply
:icongambits-wild-card:
Cool, and its real time as well. Nice one mate!
Reply
:iconyesowl:
Yeah, real time! I'm glade you can see it all ok and not just some blank canvas! It was a little test I've been doing in Flash to get to grips with Actionscript 3.0 so most of it (apart from the actual graphics obviously) is done using code. I mainlt uploaded it to see if it worked on-line to so thanks for the feedback, dude!
Reply
Add a Comment: