Page 1 of 1

Passing existing SmartFox instance to ChatBox

Posted: 28 Oct 2009, 19:18
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

Posted: 31 Oct 2009, 19:27
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.

Posted: 02 Nov 2009, 21:03
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