[haXe] Resources in Haxe/Swfmill and Flash
Johannes Strömberg
johannes.stromberg at strusoft.com
Thu Jan 18 21:43:27 CET 2007
Hi,
I have been playing around with Haxe and Swfmill to generate Flash files
and it seems to work great under Flash 8 but when I try to use version 9
the resources will not be loaded properly. The resources are however
detected since when I use a class name that does not match a resource id
it will load without throwing an exception.
The Main.hx file:
class Button extends flash.display.MovieClip {
}
class Main {
static function main() {
var t_mc = new Button();
flash.Lib.current.addChild(t_mc);
t_mc.x = 210;
t_mc.y = 10;
}
}
and the compile.hxml file:
-swf out.swf
-swf-version 9
-swf-lib button.swf
-main Main
The button.swf is generated from the button.zip code from the website
with version="9" and resource id "button" changed to "Button"
Please also find the attach zip-file for the complete source.
Am I doing something wrong or is there a bug in Swfmill/Haxe? Any help
is appreciated.
/Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flash9.zip
Type: application/x-zip-compressed
Size: 69949 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20070118/e2f72d32/flash9-0001.bin
More information about the Haxe
mailing list