così, che dovrebbe restituire 10000 (10 sec),
mi da 12050 (12.05 sec)
a = 0
b = setInterval(function(){ a++ },10)
_root.onEnterFrame = function(){
if(a>=1000){
trace(getTimer())
clearInterval(b)
delete this.onEnterFrame
}
}
:master:
così, che dovrebbe restituire 10000 (10 sec),
mi da 12050 (12.05 sec)
a = 0
b = setInterval(function(){ a++ },10)
_root.onEnterFrame = function(){
if(a>=1000){
trace(getTimer())
clearInterval(b)
delete this.onEnterFrame
}
}
:master:
...altri 5 anni di purga...