ScriptTimeoutError:: fixed in AnimationController

This commit is contained in:
Yaski
2012-05-12 14:49:26 +06:00
parent f17bd92ed2
commit e2b933b408
2 changed files with 9 additions and 10 deletions

View File

@@ -132,10 +132,13 @@ package alternativa.engine3d.animation {
}
}
// Calls the notifications
for (var notify:AnimationNotify = nearestNotifyers; notify != null; notify = notify.processNext) {
for (var notify:AnimationNotify = nearestNotifyers; notify != null;) {
if (notify.willTrigger(NotifyEvent.NOTIFY)) {
notify.dispatchEvent(new NotifyEvent(notify));
}
var nt:AnimationNotify = notify;
notify = notify.processNext;
nt.processNext = null;
}
nearestNotifyers = null;
}