This one has definitely happened before :), but I have yet to found a satisfactory answer on either swfmill and haxe mailing lists, so I'm posting to both.
I'm trying to construct a MovieClip consisting of 3 frames with swfmill and import it to haxe, using Flash9 API. assets.xml : --------------------------------------------------------------- <?xml version="1.0" encoding="iso-8859-1" ?> <movie version="8" width="800" height="600" framerate="24"> <background color="#ffffff"/> <frame> <clip id="Frame1" import="1.png"/> <clip id="Frame2" import="2.png"/> <clip id="Frame3" import="3.png"/> <library> <clip id="TestClip"> <frame> <place id="Frame1"/> </frame> <frame> <place id="Frame2"/> </frame> <frame> <place id="Frame3"/> </frame> </clip> </library> </frame> </movie> --------------------------------------------------------------- (NOTE that changing movie version from 9 to 8 makes absolutely no difference - the exact same error appears) Test.hx : --------------------------------------------------------------- 1: import flash.display.MovieClip; 2: 3: class TestClip extends flash.display.MovieClip {} 4: 5: class Test extends flash.display.MovieClip { 6: 7: private var testclip: TestClip; 8: 9: public function new() { 10: super(); 11: 12: testclip=new TestClip(); 13: addChild(testclip); 14: } 15: 16: public static function main() { 17: var test = new Test(); 18: var parent = flash.Lib.current; 19: parent.addChild(test); 20: } 21: } ------------------------------------------------------------- swfmill -v simple assets.xml assets.swf swfmill 0.2.12.4 Reading from assets.xml Importing PNG: '1.png' (24 bit/pixel) Importing PNG: '2.png' (24 bit/pixel) Importing PNG: '3.png' (24 bit/pixel) Writing SWF to assets.swf SWF saved to assets.swf (4789 bytes). haxe -swf test.swf -main Test -swf-version 9 -swf-lib assets.swf -debug (haxe version 1.13. I also tried the haxe --flash-strict and --flash-use-stage options, with no difference). flashplayer test.swf : An ActionScript error has occured : ReferenceError: Error #1056: Cannot create property on TestClip at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at TestClip$iinit()[./Test.hx:3] at Test$iinit()[./Test.hx:12] at Test$/main()[./Test.hx:17] at MethodInfo-55() at Boot_DA61EA$iinit()[/usr/local/haxe/std/flash9/Boot.hx:59] _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org