|
|
 |
RE: FN-FORUM: Another Flash AS Query
date posted 11th August 2003 21:32
Okay have seconds working, tried to apply for the hours and mins' but
they are dormant..
Regards
Deborah
myHour = new Date();
myHour = newDate.getHours().toString();
if (length(myHour) Is this what you meant???
>
> mySecs = new Date();
> secs = mySecs.getSeconds();
> if (length(mySecond) mySecond = "0"+mySecond;
> }
>
> 'cause it doesn't work for me.
Probably because mySecond is undefined...
It should read:
mySecs = new Date();
mySecond = mySecs.getSeconds().toString();
if (mySecond.length < 2) {
mySecond = "0"+mySecond;
}
// trace("s: "+mySecond);
HTH
Matt
--
Matt Burns [EMAIL REMOVED]
Freelance Web/New Media Consultant
Member of the Professional Contractors Group
==========
redmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard.
Visit http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|