Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Chrono



Hi,

I've done this chrono but it seems that it's not very acurate. Any tip how I could improve it?

Thanks

It starts like this:

var intervalId:Number;
var count:Number = 0;
var duration:Number = 10;
function executeCallback():Void {
count++;
}
intervalId = setInterval(this, "executeCallback", duration);

Then I stop it with this:

clearInterval(intervalId);

And this is to show the result:

txtElapsedTime.text = (count/100)+"sec.";



FlashKit > Flash Help > Flash ActionScript
Posted on: 12-18-2006, 11:44 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Top Chrono
Please, how to create an interactive chronometer on Flash5?
Thanks.

Chrono
Hi,
I've done this chrono but it seems that it's not very acurate. Any tip how I could improve it?

Thanks

It starts like this:

var intervalId:Number;
var count:Number = 0;
var duration:Number = 10;
function executeCallback():Void {
count++;
}
intervalId = setInterval(this, "executeCallback", duration);

Then I stop it with this:

clearInterval(intervalId);

And this is to show the result:

txtElapsedTime.text = (count/100)+"sec.";

Chrono
Hi,
I've done this chrono but it seems that it's not very acurate. Any tip how I could improve it?

Thanks

It starts like this:

var intervalId:Number;
var count:Number = 0;
var duration:Number = 10;
function executeCallback():Void {
count++;
}
intervalId = setInterval(this, "executeCallback", duration);

Then I stop it with this:

clearInterval(intervalId);

And this is to show the result:

txtElapsedTime.text = (count/100)+"sec.";

AS2 - Chrono
Hello,
I make differents exercices for childs. Child will win points if his exercice is good.
I organise this differents exercices with class.
Now i want to add bonus point with time. So i want to create a counter with a class.
I don't know how i can do this.
Can somebody help me ?

THANKS

Copyright © 2005-08 www.BigResource.com, All rights reserved