ActionScript 3.0 :: ReadObject Problem

Dec 4, 2008

I have a byteArray that is populated from a URLStream that I then try to readObject from but I get the following error: "The supplied index is out of bounds".I know that byte data is there because if I use Loader.loadBytes from the same byteArray my object show up fine.

View 1 Replies


Similar Posts:


Actionscript 3 :: AIR ReadObject() From Socket - Check All Data Has Been Received?

Sep 8, 2011

If you write a simple object to a socket:

var o:Object = new Object();
o.type = e.type;
o.params = e.params;
_socket.writeObject(o);
_socket.flush();

Then on the client do you simply use:

private function onData(e:ProgressEvent):void
{
var o:Object = _clientSocket.readObject();
}

Or do you have to implement some way of checking all of the data has been received recieved before calling .readObject()

View 4 Replies

Actionscript 3 :: Index Is Out Of Bounds" Error When Using ReadObject With Sockets

Nov 5, 2010

I'm trying to build a simple as3 server/client app. When the client has connected to the server, it should send a message like "1" to the server. The server does the following:

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved