SmartFoxClient constructor doc, example error

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Jack
Posts: 3
Joined: 15 Dec 2009, 23:41

SmartFoxClient constructor doc, example error

Post 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)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thank you, it will be corrected.
Lapo
--
gotoAndPlay()
...addicted to flash games
Jack
Posts: 3
Joined: 15 Dec 2009, 23:41

Post 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()"?
Post Reply