< Haxe Programming 
  
 
        
      Target Platforms
Below is a list of all of the platforms Haxe supports:
| Name | 
|---|
| Flash | 
| Neko | 
| JavaScript | 
| ActionScript 3 | 
| PHP | 
| C++ | 
| Java | 
| C# | 
| Python | 
"Hello, World!"
First off, we are going to write a "Hello, World!" program. This way of printing applies to all targets.
class Hello {
    static function main() {
        trace("Hello, World!");
    }
}
This code can then be interpreted by saving the file as Main.hx, then by using the command haxe -main Main --interp in any command-line.
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.