Page 1 of 1

SmartFoxClient constructor doc, example error

Posted: 17 Dec 2009, 07:43
by Jack
Some confusion between SmartFoxClient and SmartFoxServer:
[so in the first minute of coding from the docs, it breaks :) ]

Example:
The following example shows how to instantiate the SmartFoxClient class enabling the debug messages.
var smartFox:SmartFoxServer = new SmartFoxServer(true)

Posted: 17 Dec 2009, 15:00
by Lapo
Thank you, it will be corrected.

Posted: 17 Dec 2009, 20:04
by Jack
Thanks, Lapo.
I figure that was my bad, for not doing the Tutorial track, so I went there.
Next stop: 5.1 Tutorials: Connect to the server.

It would be helpful for new users if this were updated to indicate that this tutorial is only for AS2; trying to do it with AS3/Flex I discover "onConnected" is not an instance variable of SmartFoxClient. and I don't find Examples/AS3/simpleConnect. So back to the API docs...

I suppose I need:

Code: Select all

sfs.addEventListener(SFSEvent.onConnection, handleConnection)
as found in SmartFoxTris.as?
And using AS3/Flex do I need to consider that "stop()"?