time out? leaving room and server after a few seconds

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Tom
Posts: 20
Joined: 27 Apr 2007, 21:04

time out? leaving room and server after a few seconds

Post by Tom »

maybe something simple yet again on my part here but after successfully connecting to the server and joining a room... i'm getting dropped.

NOT if i use the as3 template... but if i try taking that and applying it to my flash game.

perhaps something to do with event listeners? i don't know why it would disconnect me but it is.

i have two browser tabs open, the server admin tool and my game... i see when it connects (and i'm tracing with the debug too) and everything returns properly and gets connected. i join the room. user is in it for a while.

then a few seconds later (maybe 10, 20 ?) it drops. and i'm disconnected.

very strange...i'm of course learning and reading and re-reading, but i just wish there was some more as3 examples.

maybe theres some obvious conflict that i'm not aware of.

anyone else have a similar issue?

thanks.

(PS- i am connecting to a game room)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Does this happens locally or over the internet?
Are you sure you didn't tweak the MaxIdleTime settings?
Lapo
--
gotoAndPlay()
...addicted to flash games
Tom
Posts: 20
Joined: 27 Apr 2007, 21:04

Post by Tom »

not sure i figured it out but i solved the problem... there was something in my application that ran after connecting and would terminate the connection.... why i don't know.

so i just moved the main.as (from the template for as3) class into my main application and it solved the issue.

for some reason accessing that template as a class and calling the methods just seemed to create problems for me. again being new to all this doesn't help ... would love to track it down as it could be something noteworthy for the future.

i'm totally loving smart fox server ... have a nice little race game up and going using SFS and the Fisix engine that's out there... the only thing I have left to do on that is update the other car's position ... having problems getting the user variables...

BUT... :)
once that's all set WOW!
just may need to be buying a license for some projects.
Post Reply