Chapter 17 Example 1

by actionscriptbible
♥0 | Line 13 | Modified 2009-06-28 03:53:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright actionscriptbible ( http://wonderfl.net/user/actionscriptbible )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/iPH1
 */

package {
  import flash.display.Sprite;
  import flash.text.TextField;

  public class ch17ex1 extends Sprite {
    public function ch17ex1() {
      var txt:TextField = new TextField();
      txt.text = "Hello World.\n";
      addChild(txt);
      txt.text += "Hello again.\n";
      txt.appendText("Last hello, I promise.\n");
    }
  }
}