that is starling runtime , not as3 runtime .
starling runtime is works normal , but as3 runtime not
you can adding this code to as3 runtime - spine-as3-example - Main.as
// spine-as3-example - Main.as
......
if (false) {
skeleton.state.setAnimationByName(0, "test", true);
} else {
skeleton.state.setAnimationByName(0, "walk", true);
skeleton.state.addAnimationByName(0, "jump", false, 3);
skeleton.state.addAnimationByName(0, "run", true, 0);
}
addChild(skeleton);
// my test code : I want to show two instances on the satge , and they are used the same data
// but after 3 second later it has only one
setTimeout(function():void{
var skeleton2:SkeletonAnimation = new SkeletonAnimation(skeletonData, stateData);
skeleton2.x = 700;
skeleton2.y = 600;
skeleton2.state.setAnimationByName(0, "run", true);
skeleton2.state.addAnimationByName(0, "jump", false, 3);
skeleton2.state.addAnimationByName(0, "run", true, 0);
addChild(skeleton2);
},3000)