Problem with components erroring out upon return from game

Everything about the SmartFoxBits UI Components for SmartFoxServer 1.x. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

ealiensoft
Posts: 54
Joined: 06 Feb 2008, 07:21
Contact:

Problem with components erroring out upon return from game

Postby ealiensoft » 05 May 2009, 21:41

Hi, I have a lobby setup that allows players to join a game, and stay in the lobby while they play to reserve their spot. Upon the game being over I leaveRoom to leave the game room and send it back to the lobby frame in my flash file. When I get back to the lobby though the components error out saying that they are null references, especially if I try to update the userlist or sometimes even the chatbox just craps out and says its a null reference. Any ideas on why these components might be getting destroyed when moving away from their frame?

Thanks
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 05 May 2009, 21:53

First of all we need to know the Bits version: as2? as3? flash or flex?
Also please report here the error trace.
Paolo Bax
The SmartFoxServer Team
ealiensoft
Posts: 54
Joined: 06 Feb 2008, 07:21
Contact:

Postby ealiensoft » 05 May 2009, 22:21

Sorry, latest bits version 1.1 and as3, flash.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 06 May 2009, 06:30

Among the examples provided with the Bits there's also a lobby example, which doesn't show errors. How your application differs?
Can you share the fla file, so we can give it a look?
Paolo Bax
The SmartFoxServer Team
ealiensoft
Posts: 54
Joined: 06 Feb 2008, 07:21
Contact:

Postby ealiensoft » 06 May 2009, 19:04

PM Sent.
Thanks

Return to “SmartFoxBits for SFS 1.x”

Who is online

Users browsing this forum: No registered users and 16 guests