Haxe port of the spriterAS3 library by Abel Toy
Version 0.9
You need NME to use this library.
In your NME file, all Spriter's ressources must be in the sprites directory.
<assets path="path/to/the/sprites/directory" rename="sprites" />
var spriter : BitmapSpriter = new BitmapSpriter('BetaFormatHero.SCML', 100, 300);
spriter.playAnimation('idle_healthy');
addChild(spriter);
var spriter : FlxSpriter = new FlxSpriter('BetaFormatHero.SCML', 100, 300);
spriter.playAnimation('idle_healthy');
add(spriter);
var spriter : HxpSpriter = new HxpSpriter('BetaFormatHero.SCML', 100, 300);
spriter.playAnimation('idle_healthy');
addGraphic( spriter );