Click to See Complete Forum and Search --> : [RESOLVED] AS3 - XMLSocket Changed
imdumb
07-17-2008, 05:56 PM
I look over and updated my system with the new adobe components when I was checking K7. The xmlsocket must have changed. Everyone be aware the behavior has changed. I will need to do some testing to find out the changes.
W.Brant do you have any suggestions?
Thanks
imdumb
07-17-2008, 07:19 PM
This particular problem was a timing issue. If you try to connect and then send data immediately. The data is lost.
socket.connect(host,port)
socket.send(****)
Solution:
connect and wait for the socket.onConnect() event to occur. Then send your xml info.
blanius
07-17-2008, 09:13 PM
Probably wasn't a change so much as the speed of code execution improved so much... This is what you should have done anyway, but now that AS3 code executes so much faster it's showed up.
w.brants
07-18-2008, 01:29 AM
I think you are mixing some things up Imdumb.
Do you mean when you were checking out KM7 the examples posted in the other thread or do you have actual access to the current beta ?
From what you posted here, I have the impression all you did was update your FlashPlayer. The onConnect you are talking about is clearly AS1 since AS3 doesn't have such a function.
imdumb
07-18-2008, 08:10 AM
Valid point you made with as3 not having a onConnect event.
I was checking your new km7 demo and yes adobe prompted me update.
What changed is that, I was able to connect and then send info with as1 in two lines of code.
With the update, I now have to connect first. Wait for the connection to complete and then send information.
I just wanted everyone who may use xmlsocket to be aware of it.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.