Load Graphic from TextureAtlas



  • Hello,
    I'm following the basic tutorials, I'm not seeing how to load a graphic from an atlas,
    I have worked out how to load an animation from an atlas ( return FlxAtlasFrames.fromSparrow("assets/images/1/"+str+".png", "assets/images/1/"+str+".xml"); )

    How would I achieve loading a single sub-texture from a texture atlas as a graphic for my FlxSprite?

    I'm coming from, "Starling for Flash", I would like to load assets the same way I would in Flash.

    Thank you


Log in to reply