ActionScript 3 Hello World


Example

An example document class that prints “Hello, World” to the debug console when instantiated.

import flash.display.Sprite;

public class Main extends Sprite {

    public function Main() {
        super();

        trace("Hello, World");
    }

}