Which Haxe version? Could you send a small example swf-lib + compiled swf (separate the lib, and the compiled haxe-swf, to see where do the bytes get missed)?
Robin

2010.10.05. 16:59 keltezéssel, Thom Any írta:
Does anybody know, when I include binary data, why the first two bytes dissapear?
Maybe there is something I'm doing wrong?
Im including a file as follows: (swfmill simple)
<binary id="Game" import="game.mgx"/>
Then, I define the class: (haXe)
class Game extends flash.utils.ByteArray { public function new() { super(); } }
I create a new instance of this Class, and convert it to a ByteArray:
var _data:ByteArray = cast(new Game(), ByteArray);
When I read this _data, the first two bytes are not there.
Greetings,
Thomas


_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to