FORUMS: list search recent posts

Placing Date and Time in Flash File

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Waters
Placing Date and Time in Flash File
on Jun 7, 2009 at 2:53:14 am

Hello Everyone!
I am in a rut! I need to post the current Date and Time in a Flash File. I dont know the script very well and i am very particular on how i want it done.

Here is an example of exactly what i want: URL BELOW
http://www . bigstuf . com

On the top of that Flash site is the current date and time. How can i do that?

Thanks Lots!
Daniel


Return to posts index

Pieter Helsen
Re: Placing Date and Time in Flash File
on Jun 7, 2009 at 7:37:29 am

import flash.utils.Timer;

var timer:Timer = new Timer(1000);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();

function timerHandler():void {
var date:Date = new Date();
var hours:int = date.getHours();
var mins:int = date.getMinutes();
var days:int = date.getDays();
...
}

I think you can figure out the rest for yourself. :)

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]