1 Reply Latest reply on May 15, 2009 2:53 PM by ATIF FAROOQ

    question on byteArray

    aprildavid Level 1

      following is my code:

      var iByteArray:ByteArray=new ByteArray();
         iByteArray.writeDouble(Math.PI);
           var k:Number=iByteArray.readDouble();

       

      It sounds very simple, but I got following error "End of file was encountered."

      Does anyone know why?