Haxe编程中时间侦听的写法

//老外的文章就是有点罗里吧嗦,我直接取其重点,就是下面这三行代码啦!
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 {}

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>