此代码会延迟每次触发循环之间的时间吗?
while (coin.x > objYEnemy.x) {
var delay:Timer = new Timer(100, 1);
delay.addEventListener(TimerEvent.TIMER, runOnce);
delay.start();
function runOnce(event:TimerEvent):void {
coin.x -= 1;
delay.stop();
}
}