Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getTimer

Status
Not open for further replies.
Dec 24, 2001
857
GB
If I've got a movie which loads another movie into it, is there a way I can use the getTimer command but only in the loaded movie.

What I mean is if I just use it as normal, it counts the seconds since the whole of the movie started. How can I make it specific to the one I loaded?

I want it to count ten seconds before it carries on, but if the movie is in a loop, 10 seconds is only going to happen once, so when it gets back round to this point, it'll never carry on.

Thanks
 
When you load the new movie take note of the time:

newMovieTime=getTimer();

Then ten seconds from that point is:

if(getTimer()-newMovieTime>10000){
do something;
} Slainte

 
I tried that, and a few variations but none worked. As an error checking thing, I created a dynamic box called seconds so I could see what it got up to.
It either started at about 16000ms (the point during the movie in which them actions are entered), 0, or nothing was displayed at all.

Is there any way to just start a timer? That would be the easiest thing to do.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top