Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Digital Time, Create a Digital Time in flash.
flash4satheesh
post Oct 4 2007, 01:38 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 16
Joined: 3-October 07
From: India
Member No.: 51,046



Digital Time

1.Create a Text Field and Create set them instance name = “time”.
2.Select the first Frame.
3.Press F9 and Copy Code Below and paste it.

CODE
_root.onEnterFrame = function() {
    var time:Date = new Date();
    hour = (time.getHours()<=12) ? time.getHours() : (time.getHours()-12);
    hour = (hour<10) ? ["0"+hour] : hour;
    second = time.getSeconds();
    second = (second<10) ? ["0"+second] : second;
    Minutes = time.getMinutes();
    Minutes = (Minutes<10) ? ["0"+Minutes] : Minutes;
    _root.time.text = [hour+"."+Minutes+"."+second];
};
Go to the top of the page
 
+Quote Post
hitmanblood
post Oct 4 2007, 05:59 AM
Post #2


Privileged Member
*********

Group: [HOSTED]
Posts: 775
Joined: 13-April 07
From: mreža
Member No.: 41,558



This makes digital clock or what?????

I did not tried this code but I am interested what it actually does.
Go to the top of the page
 
+Quote Post
flash4satheesh
post Oct 20 2007, 06:23 AM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 16
Joined: 3-October 07
From: India
Member No.: 51,046



It only display the time in the Text Field.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Flash Movie Loads...(4)
  2. Loadsound Flash Mx(0)
  3. How To Format Your Flash Disk/ Diskettes(6)
  4. Tweening In Flash Mx(10)
  5. Loading Movies Technique In Flash(4)
  6. Making Interactive Cds With Flash(2)
  7. Using An Actionscript In Flash For Loops(0)
  8. Flashing Your Motherboard's Bios(10)
  9. How To Make 3d Wireframes(2)
  10. 3d Landscape In Swishmax (flash)(1)
  11. Load A Another Swf Movie Into Flash Player.(0)
  12. Adding Flash Music Player To Home/any Page(2)


 



- Lo-Fi Version Time is now: 20th July 2008 - 11:44 AM