//老外的文章就是有点罗里吧嗦,我直接取其重点,就是下面这三行代码啦!
var timer = new Timer(10); //10 is the time difference in milliseconds between the timer call
timer.run = doRun;//its kind of event listener // 代替enter_frame事件,haxe,cpp都不支持enter_frame!
function doRun():Void {}