In a function i'm trying to delay the execution of the code through:
var thinkTimer = setInterval(Actions(opp), C.THINK_TIME);
where Actions is a simple (tested working) function, opp is a small integer and C.THINK_TIME is a constant = 3000 (3 seconds).
but using setInterval I got this problem: The function Actions immediatly runs (without waiting the interval) and every 3 seconds I got this message in the output:
TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null. at SetIntervalTimer/onTimer() at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()
What is this about? I'm not trying to accede a property or a function with a refering object null! :-/