mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[as3] Fixed bug in SkeletonSprite related to timing. See http://esotericsoftware.com/forum/Runtimes-spine-starling-spine-AS3-major-bug-not-crash-8038
This commit is contained in:
parent
60bbfce2fc
commit
cc9fdf3f1f
Binary file not shown.
@ -60,6 +60,7 @@ package spine.flash {
|
||||
_skeleton = new Skeleton(skeletonData);
|
||||
_skeleton.updateWorldTransform();
|
||||
|
||||
lastTime = getTimer();
|
||||
addEventListener(Event.ADDED_TO_STAGE, onAdd);
|
||||
addEventListener(Event.REMOVED_FROM_STAGE, onRemove);
|
||||
}
|
||||
@ -67,7 +68,7 @@ package spine.flash {
|
||||
removeEventListener(Event.ENTER_FRAME, enterFrame);
|
||||
}
|
||||
|
||||
public function clearListeners() {
|
||||
public function clearListeners() : void {
|
||||
removeEventListener(Event.ADDED_TO_STAGE, onAdd);
|
||||
removeEventListener(Event.REMOVED_FROM_STAGE, onRemove);
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user