|
haxe2swf
Compile .hx files to a Flash .swf file.
The haxe2swf taskThis calls the haxe compiler to compile to a Flash .swf file. Standard OptionsAll 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> SwflibYou can specify a .swf resource library with the swflib attribute. <haxe2swf main="App" out="app.swf" swflib="resources.swf"/> VersionYou can specify the Flash version with the version attribute. <haxe2swf main="App" out="app.swf" version="9"/> HeaderYou 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