12.2.1 Flash 시작하기(Getting started with Flash)

12.2.1 Flash 시작하기(Getting started with Flash)

Flash 타깃은 Flash Player와 AIR를 위한 .swf 파일을 생성합니다.

간단한 예제:

class Main {
  static function main() {
    trace("Hello World!");
  }
}

SWF로 컴파일:

haxe --main Main --swf main.swf

Flash 타깃의 주의점: Flash는 네이티브 JSON, XML 등을 포함하지만, 사용 가능한 API가 제한적입니다.

출처: Getting started with Flash

더 알아보기