Page 1 of 1

onLogin() AS1 - Error in docs

Posted: 03 Mar 2006, 16:02
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

Posted: 03 Mar 2006, 17:00
by Lapo
Absolutely right!
Thanks for pointing it out.

:)