Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

AS3 to java server

Name: Anonymous 2010-10-07 6:57

Ok i got this code, but it will only sends the message "MESSAGE HERE" after the connection is closed.

var xml_s=new XMLSocket();
xml_s.connect("localhost", 2004);
xml_s.addEventListener(Event.CONNECT,xmlsocket);//OnConnect//
xml_s.addEventListener(Event.CLOSE,xmlsocket);//OnDisconnect//
xml_s.addEventListener(IOErrorEvent.IO_ERROR,xmlsocket);//Unable To Connect//


function xmlsocket(Event):void{
switch(Event.type){
case 'ioError':
cout.text="error";
break;
case 'connect':
cout.text="connected";
break;
case 'close':
cout.text="disconnect";
break;
}
}
xml_s.send("MESSAGE HERE");

Name: Anonymous 2010-10-07 8:29

That's because it's unindented and without [code] tags.

Name: Anonymous 2010-10-07 9:21

>>2
INDENT MY ANUS

Name: Anonymous 2010-10-07 11:07

>>1
So, does the connection ever open in the first place?

Name: Anonymous 2010-10-07 12:32

Please avoid computers from now on. If possible, for the rest of your life.

Name: Anonymous 2010-10-07 12:57

>>4
yes the connection opens fine. just that the message appears on the command prompt only after the connection is closed.

>>5
HURR DURR AM I COOL YET GUISE?

Name: Anonymous 2010-10-07 13:05

>>6
HURR DURR AM I COOL YET GUISE?
This line, along with the lack of (a?) sage, is just cementing the belief that you are clearly new here (and also a moron, as Xarn would put it).

Name: Anonymous 2010-10-07 13:16

>>7
Atleast i know how to program, you on the other hand can only tell other people to fuck off beucase you you dont know shit.

Name: Anonymous 2010-10-07 13:17

>>8
I doubt that, since a large part of programming is solving problems. This problem appears unsolved.

Name: Anonymous 2010-10-07 13:20

>>8
i know how to program
Clearly. IHBT.

Name: Anonymous 2010-10-07 13:21

>>10
Have you ever heard of "learning something new?"

Guess not.

Name: Anonymous 2010-10-07 13:28

>>8
At least I am capable of observation and adapting to [spoiler[/prog/[/spoiler]'s customs. Not to mention that I can punctuate my posts.
>>11
I'm acquainted with the idea of ``learning something new''. What you are doing could pass as a poor attempt at that. Don't worry, though, there are still simple (rudimentary!) things you can learn, formatting your fucking code being one of them.

Name: Anonymous 2010-10-07 13:29

See, you made me angry enough to FUQ UP my BBCode.

Don't change these.
Name: Email:
Entire Thread Thread List