In the game I am building I need every 5 seconds a function to be called. The function looks like the following:
ballOrder = function(){
_global.balls = random(3);
trace(_global.balls);
if(_global.balls == 0){;
_global.greenballTween.play();
}
}
How would I go about making a time that pretty much counts to 5 and then resets itself again?