whaddaya want? a timer counting upwards/downwards? a command that calls a function after 6 minutes?
counter:
Code:
var inter:Number;
var minutes:Number = 0;
var seconds:Number = 0;
function showCounter():Void{
if (seconds==60){
seconds = 0;
minutes++;
}
if (minutes == 6){
clearInterval(inter);
}
textFieldName.text = minutes +":"+seconds;
seconds++;
}
showCounter();
inter = setInterval(showCounter, 1000);
call after 6 minutes:
Code:
var inter:Number = setInterval(myFunction, 3600);
function myFunction():Void{
trace("Six Minutes are over");
clearInterval(inter);
}