all groups > flash (macromedia) > november 2007 >
You're in the

flash (macromedia)

group:

Problems with clock


Re: Problems with clock Shronk
11/2/2007 12:00:00 AM
flash (macromedia):
Oddly it won't work. :(

Re: Problems with clock Shronk
11/2/2007 12:00:00 AM
Ha!

Now it works.
instead of a + I just used add and it worked fine :)
so for seconds:


seconds = fscommand2("getTimeSeconds");
Problems with clock Shronk
11/2/2007 12:25:00 AM
Hi there,
I'm trying to build a clock with flash lite 1.1
This should actually not be such a big problem, but I'm just not able to get a
leading 0 in front of 1-9 (like: 01,02 instead of 1,2)
what am I doing wrong?




sek = fscommand2("GetTimeSeconds");
if (sek<10) {sek="0"+sek;}
Re: Problems with clock chrisf671
11/2/2007 12:43:11 AM
This should work and if it doesnt tell me, also i cut these peices from a
longer code so you might have to move it to fit your code.
tell me if it doesnt work.

var seconds = time.getSeconds()
if(seconds<10)
{
seconds = "0" + seconds;
Re: Problems with clock chrisf671
11/3/2007 2:59:41 AM
AddThis Social Bookmark Button