I make these steps:
1) Connect to SmartFox
2) Login to the "Login" zone
3) Now I want to access the "Lobby" zone, as I can do it?
I think I have to call "sfs.Send (new LogoutRequest ());"
and then?
How to access in a zone?
Re: How to access in a zone?
1. Send a LogoutRequest
2. Wait for the SFSEvent.LOGOUT on the client side
3. Send a LoginRequest with "Lobby" as the zone parameter
2. Wait for the SFSEvent.LOGOUT on the client side
3. Send a LoginRequest with "Lobby" as the zone parameter
Re: How to access in a zone?
When I do LoginRequest, I must re-enter the username and password of the user and check if they are valid?
sfs.Send (new LoginRequest (userName, UserPass, "Lobby"));
or
sfs.Send (new LoginRequest ("", "", "Lobby"));
sfs.Send (new LoginRequest (userName, UserPass, "Lobby"));
or
sfs.Send (new LoginRequest ("", "", "Lobby"));
Re: How to access in a zone?
Yes, if you care about security
Who is online
Users browsing this forum: Baidu [Spider] and 158 guests