My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 01, 2009 by wildwinter
haxe2swf  
Compile .hx files to a Flash .swf file.

The haxe2swf task

This calls the haxe compiler to compile to a Flash .swf file.

Standard Options

All the StandardHaxeTasks options apply. This task supports Dependency Checking, which is turned on by default i.e. if the source files haven't changed, the haxe compile step won't be called.

To compile to a .swf file

<haxe2swf main="App" out="app.swf"/>

or

<haxe2swf main="App" out="app.swf" swflib="resources.swf" version="8">
  <header width="300" height="200" framerate="32" background="FF0000"/>
</haxe2swf>

Swflib

You can specify a .swf resource library with the swflib attribute.

<haxe2swf main="App" out="app.swf" swflib="resources.swf"/>

Version

You can specify the Flash version with the version attribute.

<haxe2swf main="App" out="app.swf" version="9"/>

Header

You can specify output details of the generated .swf file using the header child element.

You must set the width,height,framerate and background attributes.

<haxe2swf main="App" out="app.swf">
  <header width="300" height="200" framerate="32" background="FF0000"/>
</haxe2swf>

Sign in to add a comment
Hosted by Google Code