A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [RESOLVED] AS3 - XMLSocket Changed

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110

    resolved [RESOLVED] AS3 - XMLSocket Changed

    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

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    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.

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  4. #4
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    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.

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center