Wrong documentation for onLogin event in AS3 reference

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

Moderators: Lapo, Bax

Post Reply
didibus
Posts: 34
Joined: 09 Sep 2007, 19:31

Wrong documentation for onLogin event in AS3 reference

Post by didibus »

The AS3 Api reference for smartFox states:

Code: Select all

onLogin

Dispatched after the login to SmartFoxServer has been attempted.

The params object contains the following parameters.

    * resObj:Object - the response object sent by the server.

The response object contains the following parameters.

    * success:Boolean - the login result: true if the login was successful; false if login failed.  The reason for failure is explained in the error parameter.
    * name:String - your current username.  The server sends the username back to the client because not all usernames are valid (for example those containing bad words may have been filtered).
    * error:String - the error description sent by the server (in case of login failed).
When it should state:

Code: Select all

onLogin

Dispatched after the login to SmartFoxServer has been attempted.

The params object contains the following parameters.

    * success:Boolean - the login result: true if the login was successful; false if login failed.  The reason for failure is explained in the error parameter.
    * name:String - your current username.  The server sends the username back to the client because not all usernames are valid (for example those containing bad words may have been filtered).
    * error:String - the error description sent by the server (in case of login failed).
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thanks, it's now fixed
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply