Commit 35b9f49d authored by Daniel Rossi's avatar Daniel Rossi

- #163 fixes for buffer animation timer

parent 1f63b4af
......@@ -28,16 +28,17 @@ import flash.utils.Timer;
public function RotatingAnimation() {
createRotation();
_rotationTimer = new Timer(50);
//#163 weak reference event
_rotationTimer.addEventListener(TimerEvent.TIMER, rotate, false,0,true);
_rotationTimer.addEventListener(TimerEvent.TIMER, rotate);
_rotationTimer.start();
}
public function start():void {
_rotationTimer.addEventListener(TimerEvent.TIMER, rotate);
_rotationTimer.start();
}
public function stop():void {
_rotationTimer.removeEventListener(TimerEvent.TIMER, rotate);
_rotationTimer.stop();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment