More trouble
Posted: 03 Mar 2006, 03:07
As hinted at in my title, I don't know exactly what's wrong. Here's the problem, as far as I can tell:
Right now, I'm doing a custom login extension. (This happens on the example for custom logins.)
I successfully "login" but the _global.myName is not set. That worries me.
Then I call (clientside) smartfox.getRoomList(). I wait for the onRoomListUpdate to fire and the perform this.autoJoin(). (Yes, there is a room defined in the Config.xml for AutoJoin.) But when I go to check all the settings, I get a lot of undefined.... Not good.
Ok... Scratch most of that... Just figured out I wasn't waiting for the onJoinRoom event.... Uh... DUH!!! I feel dumb...
But I still wonder about the _global.myName being undefined... It's straight from your example, Lapo, so don't blame my code! Just kidding. It's probably my server settings.
Right now, I'm doing a custom login extension. (This happens on the example for custom logins.)
I successfully "login" but the _global.myName is not set. That worries me.
Then I call (clientside) smartfox.getRoomList(). I wait for the onRoomListUpdate to fire and the perform this.autoJoin(). (Yes, there is a room defined in the Config.xml for AutoJoin.) But when I go to check all the settings, I get a lot of undefined.... Not good.
Ok... Scratch most of that... Just figured out I wasn't waiting for the onJoinRoom event.... Uh... DUH!!! I feel dumb...
But I still wonder about the _global.myName being undefined... It's straight from your example, Lapo, so don't blame my code! Just kidding. It's probably my server settings.