Skip to content

Commit

Permalink
[as3] Fixed bug in SkeletonSprite related to timing. See http://esote…
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Mar 14, 2017
1 parent 60bbfce commit cc9fdf3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file modified spine-as3/spine-as3-example/lib/spine-as3.swc
Binary file not shown.
3 changes: 2 additions & 1 deletion spine-as3/spine-as3/src/spine/flash/SkeletonSprite.as
Expand Up @@ -60,14 +60,15 @@ package spine.flash {
_skeleton = new Skeleton(skeletonData);
_skeleton.updateWorldTransform();

lastTime = getTimer();
addEventListener(Event.ADDED_TO_STAGE, onAdd);
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
protected function onRemove(e:Event) : void {
removeEventListener(Event.ENTER_FRAME, enterFrame);
}

public function clearListeners() {
public function clearListeners() : void {
removeEventListener(Event.ADDED_TO_STAGE, onAdd);
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
}
Expand Down
Binary file modified spine-starling/spine-starling-example/lib/spine-as3.swc
Binary file not shown.
Binary file modified spine-starling/spine-starling/lib/spine-as3.swc
Binary file not shown.

0 comments on commit cc9fdf3

Please sign in to comment.