Groups | Blog | Home
all groups > flash data integration > july 2005 >

flash data integration : socket - from flash player 6 to 7


raj144
7/6/2005 6:05:36 PM
I have a client server app which works well as long as i use flash player
setting for version 6. Server sends null, etc and i parse it the way i need it.
All communications are done well and things work as they should.
As soon as i chagne the settings to use player 7 from 6 it stops working. All
of my events are invoked including onXML.

<code>
socket = new XMLSocket();
duplicateMovieClip(_root.MMM, "ConnectStatus", 1000000);
_root["ConnectStatus"]._x = 87.8;
_root["ConnectStatus"]._y = 223.3;
_root["ConnectStatus"].error = "Connecting "+_root.myDomain+" ...";
socket.connect(_root.myDomain, _root.myPort);
socket.onConnect = Connect;
socket.onClose = Close;
socket.onXML = recv;

// here is my recv function
function recv(doc)
{
trace("stream is " + doc);
parseLine(doc.toString());
}

</code>
Server sends null byte here is a capture from ethereal
0000 00 11 09 15 17 8c 00 00 24 c0 39 2d 08 00 45 00 ........$.9-..E.
0010 00 39 84 8d 40 00 3f 06 3d 27 40 59 76 8a c0 a8 .9..@.?.='@Yv...
0020 02 7f 1a 20 10 22 3b 4a 06 cd 1a 7f 54 00 50 18 ... .";J....T.P.
0030 16 d0 85 39 00 00 50 49 4e 47 20 3a 31 30 31 37 ...9..PING :1017
0040 39 33 34 38 30 31 00 934801.




It seems like macromedia fixed something in player 7 with sockets or something
and i can t find the answer to this.

Please help.
raj144
7/6/2005 6:27:31 PM
ok i have got it working 50% it gets alot of data and parses
but works around 50% or so from its original status in player 6 withe following settings

raj144
7/6/2005 8:47:20 PM
solved
it was a problem with removeDuplicateMovieClip
which got stuck everytime until i started to check for the movieclip's existance.
AddThis Social Bookmark Button