package{ import flash.display.Sprite; import flash.utils.ByteArray; public class Main extends Sprite{ public function Main(){ var bytes:ByteArray = new ByteArray(); bytes[0] = 256; trace(bytes[0]); // Outputs 0 bytes.writeInt(1); trace(bytes[0] + ""+ bytes[1] + ""+ bytes[2] + ""+ bytes[3]); } }}
Name (required)
email (will not be published) (required)
Website