Passing existing SmartFox instance to ChatBox

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

Moderators: Lapo, Bax

Post Reply
Biff_Cornwall
Posts: 29
Joined: 07 Aug 2009, 17:54

Passing existing SmartFox instance to ChatBox

Post by Biff_Cornwall »

I was looking through the documentation and I don't see anywhere where I can pass (or set) an already existing instance of SmartFox to the ChatBox component. We want to be able to use it for private chatting between players, but they will already be connect to smartfox and in a room before they get the option to do that. Is there a way to do this that I'm missing? If not, how does the ChatBox send messages back and forth, with no reference to SmartFox? Do we have to use the Connector component before we can use the ChatBox?

Thanks,
Biff
cksachdev
Posts: 55
Joined: 28 Aug 2007, 10:13
Location: Bangalore, India
Contact:

Post by cksachdev »

@Biff_Cornwall
ChatBox, uses an instance of Connector.smartFox to communicate with sfs. Yes, you will have to use Connector, so that ChatBox can connect to sfs. Could you please mention which version of bits you are looking i.e. flash/flex and as2 or as3.

Hope this helps.
--
Chetan Sachdev
Site: http://www.chetansachdev.com
Biff_Cornwall
Posts: 29
Joined: 07 Aug 2009, 17:54

Post by Biff_Cornwall »

cksachdev,

Thanks for the reply. We're using the Flash AS3 SmartFoxBits base pack. We've purchased the source code, so I've modified it to allow us to set an already existing SmartFox instance as the instance that should be used by the ChatBox. Thanks for the info though, I appreciate it!

Biff
Post Reply