Sending SFS commands.

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

Moderators: Lapo, Bax

Post Reply
XaeroDegreaz
Posts: 26
Joined: 23 Nov 2007, 03:47

Sending SFS commands.

Post by XaeroDegreaz »

I understand how to retrieve like SFSEvents, but how do I send the SFS commands, like, say createRoom()?

I've been combing through the documentation and can't find it anywhere.

I tried even connector_mc.createRoom() approach, hehe that didn't work.

I really would like to get this working, since I'm testing it out instead of using my older custom built lobby. If I could figure that out, I think I could get back up to speed, thanks!

Oh, and happy thanksgiving :)

*EDIT*
LOL, nevermind I found it. For anyone else who's needing the answer:

connector_mc.connection.desiredCommand(params)

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

Post by Bax »

Exactly!
You have to get a reference to the inner instance of SmartFoxClient used by the Connector, an then you can send commands through it:

Code: Select all

var smartFox:SmartFoxClient = connector_mc.connection
smartFox.createRoom(...)
Paolo Bax
The SmartFoxServer Team
Post Reply