Creating a Byte Array : ByteArray : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » ByteArray »

 

Creating a Byte Array


 
package{
  import flash.display.Sprite;
  import flash.utils.ByteArray;  
  public class Main extends Sprite{
    public function Main(){

        var bytes:ByteArray = new ByteArray();
        bytes[0256;
        trace(bytes[0])// Outputs 0
        
        bytes.writeInt(1);
        trace(bytes[0""+ bytes[1""+ bytes[2""+ bytes[3]);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» ByteArray