import flash.Lib;

class Sample
{

public static function main()
{
   var text = new flash.text.TextField();
   text.x = 10;
   text.y = 10;
   text.text = "Hello !";
   Lib.current.stage.addChild(text);
   text.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;

   var text = new flash.text.TextField();
   text.x = 10;
   text.y = 30;
   text.htmlText = "<font size='16'>Hello !</font>";
   Lib.current.stage.addChild(text);
 
   var text = new flash.text.TextField();
   text.x = 10;
   text.y = 50;
   text.htmlText = "<font size='24'>Hello !</font>";
   Lib.current.stage.addChild(text);

   var text = new flash.text.TextField();
   text.x = 10;
   text.y = 80;
   text.htmlText = "<font size='36'>Hello !</font>";
   Lib.current.stage.addChild(text);
}

}

import flash.Lib;

class Sample
{

public static function main()
{
   var gfx = Lib.current.graphics;
   gfx.beginFill(0x000000);
   gfx.drawRect(120,0,120,120);

   for(side in 0...2)
   {
      var col = side * 0xffffff;
      var text = new flash.text.TextField();
      text.x = 10 + side*120;
      text.y = 10;
      text.textColor = col;
      text.text = "Hello !";
      Lib.current.addChild(text);
      text.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;

      var text = new flash.text.TextField();
      text.x = 10 + side*120;
      text.y = 30;
      text.textColor = col;
      text.htmlText = "<font size='16'>Hello !</font>";
      Lib.current.addChild(text);
 
      var text = new flash.text.TextField();
      text.x = 10 + side*120;
      text.y = 50;
      text.textColor = col;
      text.htmlText = "<font size='24'>Hello !</font>";
      Lib.current.addChild(text);

      var text = new flash.text.TextField();
      text.x = 10 + side*120;
      text.y = 80;
      text.textColor = col;
      text.htmlText = "<font size='36'>Hello !</font>";
      Lib.current.addChild(text);
   }
}

}

Add black and white versions
Add black and white versions

git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@609 1509560c-5e2a-0410-865c-31c25e1cfdef

haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME,thomasuster/NME,madrazo/nme