XMLSocket sends automatically
Hello all,
My problem is this: I've got a server [VB, doesn't matter] and a Flash client with 2 buttons:
1 to connect to the server:
Actionscript Code:
on (release) {
mySocket.connect("localhost",1111)
}
and 1 to send a message:
Actionscript Code:
on (release) {
mySocket.send('hello\n');
}
Everything works fine when i Test the movie [Ctrl+Enter] but when i publish it, when i hit the connect button it connects and automatically sends some data [and from now on i can't send any data].
Spent a few hours on google so i'm counting on you.
Thanks.
PS: Adobe Flash CS4, ActionScript 2.