all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

gettimer()


Re: gettimer() +NSurveyor
12/9/2004 1:27:24 PM
flash actionscript:
[quoted text, click to view]

kglad, this line is incorrect. It should be:

gotoAndPlay(Math.round((getTimer()-startTime)/1000));

You use getTimer instead of getTimer(), and you had an extra parenthesis ')'

gettimer() Ronak Bhagdev
12/9/2004 2:50:47 PM
Hi ,
Here is the problem. can I handle animation with gettimer() function. The
problem is that I want to change frame with seconds means can I make function
like this
if (seconds=2){ gotoAndPlay(2);}
Re: gettimer() kglad
12/9/2004 4:35:32 PM
yes, you can use getTimer() to direct your movie. if you want to play frames
corresponding to the seconds elapsed from your movie's start until when a
function is called you can use:

startTime=getTimer();
function playFrame(){
gotoAndPlay(Math.round((getTimer-startTime)/1000)));
}
AddThis Social Bookmark Button