Maeko
Visitor
|
Tell Palabre what to do - 2008/02/19 23:14
I successfuly connected my App to the server. It's kinda of a chat, the chat connects but it does nothing more than that.
How can i define the Palabres' behaviour face to this chat?
My code to connect is this:
| Code: | mySocket = new XMLSocket();
mySocket.connect("localhost", 2468);
mySocket.onConnect = function(success)
{
if (success)
lol.text = "coiso";
else
lol.text = "naaaaa";
}
(...)
function enviar_desenho() {
mySocket.send(text);
text = null;
}
(...)
XMLSocket.prototype.onData = function (msg) {
Display msg code here
}
|
What am i missing?
Thanks.
|