All pastes #979482 Raw Edit

ngnp

public text v1 · immutable
·published 2008-04-10 12:09 UTC
rendered paste body
// http://osflash.org/projectsetup

import flash.MovieClip;
import flash.TextField;
import flash.TextFormat;

class Application extends MovieClip {

  static function main(){
    trace("main");
    new Application();
  }

  public function new () {
    trace("Hello World !");
  }

  public function onLoad() {
    var mytext : TextField = createTextField("mytext",1,100,100,300,100);
    mytext.multiline = true;
    mytext.wordWrap = true;
    mytext.border = false;

    var myformat : TextFormat= new TextFormat();
    myformat.color = 0xff0000;
    myformat.bullet = false;
    myformat.underline = true;

    mytext.text = "this is my first test field object text";
    mytext.setTextFormat(myformat);
  }
}