|
|
 |
Re: FN-FORUM: Another Flash AS Query
date posted 11th August 2003 21:17
Deborah Causton wrote:
> Chris.
>
> 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
|
 |
|