Hi,
long story short: I am even unable to get the example running.
I am currently using Starling 2.6.
Is there anything I might have missed? Like newer Starling SDK not being supported?
I double checked the loaded assets. They are correctly loaded and e.g. skeletonData correctly set.
I get hit with the following error; no matter the provided animation:
[App] Error: Error #1009: Cannot access a property or method of a null object reference.TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spine.starling::SkeletonSprite/render()
at starling.display:😃isplayObjectContainer/render()
at starling.display:😃isplayObjectContainer/render()
at starling.core::Starling/render()
at starling.core::Starling/nextFrame()
at starling.core::Starling/onEnterFrame() TypeError: Error #1009: Cannot access a property or method of a null object reference.
My code:
[Embed(source = "./assets/animations/spineboy/spineboy-ess.json", mimeType = "application/octet-stream")]
static public const SpineboyJson : Class;
[Embed(source = "./assets/animations/spineboy/spineboy.atlas", mimeType = "application/octet-stream")]
static public const SpineboyAtlas : Class;
[Embed(source = "./assets/animations/spineboy/spineboy.png")]
static public const SpineboyAtlasTexture : Class;
var atlas : Atlas = new Atlas(new SpineboyAtlas(), new FlashTextureLoader(new SpineboyAtlasTexture()));
var json : SkeletonJson = new SkeletonJson(new AtlasAttachmentLoader(atlas));
json.scale = 0.6;
var skeletonData : SkeletonData = json.readSkeletonData(new SpineboyJson());
var stateData : AnimationStateData = new AnimationStateData(skeletonData);
stateData.setMixByName("walk", "jump", 0.2);
stateData.setMixByName("jump", "run", 0.4);
stateData.setMixByName("jump", "jump", 0.2);
var skeleton: SkeletonAnimation = new SkeletonAnimation(skeletonData, stateData);
skeleton.x = 400;
skeleton.y = 560;
skeleton.state.addAnimationByName(0, "jump", false, 3);
skeleton.state.addAnimationByName(0, "run", true, 0);
addChild(skeleton);