SpriterMC is a Starling implementation for importing skeletal (and non-skeletal) animations generated with Spriter. The imported animation has a familiar API mimicking Starling MovieClips.

The lib has an extensive set of features, such as the ability to display underling bones (for debugging) and frame callbacks. Some more features:

  • Friendly and familiar API mimicking theĀ Starling MovieClip
  • Generates a SpriterMC from a provided SCML filepath (all loading is handled for you)
  • Effortlessly create multiple instances of existing SpriterMCs with little to no additional memory or processing
  • Accepts a preloaded TextureAtlas or creates one for you from individual assets referenced in the SCML file
  • Add sounds and callbacks to specific frames
  • Framerate-irrelevant playback features ability to play and adjust your SpriterMC’s playbackSpeed in real time, even reversing play direction altogether
  • Switch between Animations in the SpriterMC effortlessly
  • Switch out TexturePacks at runtime to completely change the graphics used

Sample

var _hero1:SpriterMC = SpriterMCFactory.createSpriterMC("hero", "xml/hero.scml", _textureAtlas, spriterReadyHandler);

private function spriterReadyHandler($e:Event):void
{
	var $mySpriterMC:SpriterMC = $e.target as SpriterMC;
	addChild($mySpriterMC);
	myJuggler.add($mySpriterMC);
	$mySpriterMC.play();
}

var _hero2:SpriterMC = SpriterMCFactory.generateInstance("hero", spriterReadyHandler);
var _hero3:SpriterMC = SpriterMCFactory.generateInstance("hero", spriterReadyHandler);
Animation . URL.