package
{
import flash.display.Sprite;
import flash.display.StageScaleMode;
import org.tinytlf.ITextEngine;
import org.tinytlf.components.TextField;
[SWF("600", height="1000")]
public class ListItemExample extends Sprite
{
[Embed("assets/fonts/Archer-Medium-Pro.otf", fontFamily="ArcherMedium")]
private var archer:Class;
[Embed("assets/fonts/Archer-Semibold-Pro.otf", fontFamily="ArcherMedium", fontWeight="bold")]
private var archerSemiBold:Class;
[Embed("assets/fonts/OsakaMono.ttf", fontFamily="OsakaMono")]
private var osakaMono:Class;
[Embed("assets/fonts/Times New Roman Bold.ttf", fontFamily="Times")]
private var timesBold:Class;
[Embed("assets/tinytlf.css", mimeType="application/octet-stream")]
private const cssSource:Class;
[Embed("assets/listitems.xml", mimeType="application/octet-stream")]
private const xmlSource:Class;
public function ListItemExample()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
var tf:TextField = new TextField();
tf.width = 600;
var engine:ITextEngine = tf.engine;
tf.style = new cssSource().toString();
tf.text = new xmlSource().toString();
addChild(tf);
}
}
}