Fixed bug when an animation event was accessing new animated value
@@ -453,6 +453,9 @@
var currentFrame = returnValue ? from + ratio % range : to;
var currentValue = this._interpolate(currentFrame, repeatCount, this.loopMode, offsetValue, highLimitValue);
+ // Set value
+ this.setValue(currentValue);
+
// Check events
for (var index = 0; index < this._events.length; index++) {
if (currentFrame >= this._events[index].frame) {
@@ -472,9 +475,6 @@
}
- // Set value
- this.setValue(currentValue);
-
if (!returnValue) {
this._stopped = true;