5 Oct 2010 16:59
include Bytearray
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@... http://osflash.org/mailman/listinfo/swfmill_osflash.org
RSS Feed