public var gameTimer:Timer;
gameTimer = new Timer(1000);
gameTimer.start(); gameTimer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true);