Hi,
Are you sure that this is not something server-side?
I have had similar problems which were compounded when using Wireless
connections - we traced the fault back to the server code giving up
filling the socket buffer when it got a "buffer full" event?
Apart from that you could use some sort of paradigm like:
http://stackoverflow.com/questions/7345214/as3-air-readobject-from-socket-how-do-you-check-all-data-has-been-received
Glen
On 15/02/2012 16:44, Mattheis, Erik (MIN-WSW) wrote:
In a the client of a client/server AIR app I have:
function onSocketData(event:ProgressEvent) : void {
var result = _socket.readObject();
// do something with result
}
How can I be sure the whole object is available before I try to use it?
Things work as expected most of the time, but with large pieces of data or on
laptops will hang when operating over a wireless connection, so I suspect the
object is spread out over multiple ProgressEvents.
I can only find pseudo code illustrating what you should do reassemble an AMF
object received in separate ProgressEvents.
_ _ _
Erik Mattheis | Weber Shandwick
P: (952) 346.6610
M: (612) 377.2272
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders