Connecting Twice

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
jflowers45
Posts: 63
Joined: 11 Jul 2006, 20:52

Connecting Twice

Post by jflowers45 »

Not sure whether this qualifies as a bug but I thought I'd note it anyways.

Took me a while to figure out why I was having trouble sending data to and from the server. turns out, in a dynamically loaded .swf that shared the root with its parent (and thus the smartfoxClient), I was calling smartFoxClient.connect a second time. From that point on I couldn't send messages from the client to the extension, nor could I send messages from the extension back to the client.

May help someone out in the future if you add something to the debugging output or make it an error condition whereby if you have an open connection and try to reconnect to the same thing it gives you a message.

Anyhow, I'm loving smartfox. Keep up the great work!
How you doin?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

May help someone out in the future if you add something to the debugging output or make it an error condition whereby if you have an open connection and try to reconnect to the same thing it gives you a message.
Thanks for the suggestion, we'll add the connection check.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply