package { import flash.display.*; import org.tinytlf.ITextEngine; import org.tinytlf.components.TextField; import org.tinytlf.interaction.TanyaAnchorMirror; import org.tinytlf.layout.factories.*; [SWF("775", height="635", frameRate="60")] public class Ticonderoga extends Sprite { [Embed("assets/fonts/Archer-Medium-Pro.otf", fontFamily="ArcherMedium")] private var archer:Class; [Embed("assets/eniac.css", mimeType="application/octet-stream")] private const cssSource:Class; [Embed("assets/ticonderoga.html", mimeType="application/octet-stream")] private const xmlSource:Class; private var tf:TextField; public function Ticonderoga() { stage.scaleMode = StageScaleMode.NO_SCALE; tf = new TextField(); tf.x = 75; tf.width = 600; tf.height = 635; var engine:ITextEngine = tf.engine; engine.interactor.mapMirror("a", TanyaAnchorMirror); tf.style = new cssSource().toString(); tf.text = new xmlSource().toString(); addChild(tf); addChild(new Stats()); } } }