onLogin() AS1 - Error in docs

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

Moderators: Lapo, Bax

Post Reply
Pippoflash
Posts: 135
Joined: 30 Jan 2006, 17:16
Contact:

onLogin() AS1 - Error in docs

Post by Pippoflash »

Hello,
in the AS1 docs for onLogin(), it says that arguments are:
smartFox.onLogin(success, name, errorMsg);

They didnt work to me, instead, laving only one argument:

Code: Select all

smartFox.onLogin(result);
If I loop in the result object:

Code: Select all

for (var i in result) trace("result." + i + " = " + result[i]);
I have this output:

Code: Select all

result.success = true
result.name = guest_30
result.error = 
So I presume insted of 3 arguments, there is only one with the 3 properties: success, name, and error.

namaste
Filippo
-----------------------
www.pippoflash.com
-----------------------
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Absolutely right!
Thanks for pointing it out.

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply