Documentation Slip Up
Posted: 28 Jul 2009, 01:39
This appears both on the online version of the documentation and the one installed on my computer
http://www.smartfoxserver.com/docs/docP ... html#login
http://www.smartfoxserver.com/docs/docP ... html#login
Code: Select all
smartFox.addEventListener(SFSEvent.onLogin, onLoginHandler)
smartFox.login("simpleChat", "jack")
function onLoginHandler(evt:SFSEvent):void
{
if (evt.params.success)
trace("Successfully logged in as " + evt.params.name)
else
trace("Zone login error; the following error occurred: " + evt.params.error)
}Scene 1, Layer {Code},Frame 1, Line 2 1136: Incorrect number of arguments. Expected 3.