Copy link to clipboard
Copied
Hi,
How can I be stopping the counter of a setInterval, which currently is being used as a stopwatch?
setInterval (stopwatch, 1000);
Thanks in advance.
Copy link to clipboard
Copied
assign it a variable:
var stopI:int=setInveral(stopwatch,1000);
and use clearInterval to stop it:
clearInterval(stopI);
Copy link to clipboard
Copied
But using this way and putting the clearInterval function is assigning an error when running the test could help me?
Justamente na linha na qual foi empregada a variável.
var stopI:int = setInveral (avancar, 1000);
Error:
1180: Call to a possibly undefined method setinveral
Copy link to clipboard
Copied
are you publishing for html5?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now