Search found 5 matches

by psych
30 May 2012, 08:47
Forum: SFS2X Questions
Topic: Java extension and USER_DISCONNECT event help
Replies: 5
Views: 9415

Re: Java extension and USER_DISCONNECT event help

I got the extension part working in a way that extension now detects user disconnect and traces out the message from event handler in Java. But all connected Flash clients do not recieve:

send("server_return_data", getReturnData(), user);

My guess is that the above line sends the return data to ...
by psych
30 May 2012, 07:44
Forum: SFS2X Questions
Topic: Java extension and USER_DISCONNECT event help
Replies: 5
Views: 9415

Re: Java extension and USER_DISCONNECT event help

Hi,

What i am trying to achieve is to send notification to all connected users when a user disconnects. Perhaps i am doing this the wrong way, can you point me in a right direction? How can i achieve that?

Thanks in advance,
Best regards
by psych
29 May 2012, 15:26
Forum: SFS2X Questions
Topic: Java extension and USER_DISCONNECT event help
Replies: 5
Views: 9415

Java extension and USER_DISCONNECT event help

Hi,

I am trying to create extension that will detect USER_DISCONNECT event and dispatch notice to AS 3.0 client side with the name of the user who disconnected. Here what i have so far:

package sfs2x.extension.userdisconnect.src;


import com.smartfoxserver.v2.core.SFSEventType;
import com ...
by psych
23 May 2012, 14:36
Forum: SFS2X ActionScript 3 API
Topic: Join two rooms at the same time
Replies: 1
Views: 5424

Join two rooms at the same time

What i am trying to do is have users enter The Lobby right after login but when the user selects opponent then two of them will join another created room named "Game".

The problem is when the user joins the "Game" room it automatically is being disconnected from the previously joined "Lobby" room ...
by psych
23 May 2012, 13:34
Forum: SFS2X ActionScript 3 API
Topic: Cannot create Room dynamically
Replies: 1
Views: 5690

Cannot create Room dynamically

Hi,

I am trying to create Room dynamically. My idea is to create a game Room for every two players connected previously by invitations. However, when i try to create a room this way:


sfs.addEventListener(SFSEvent.ROOM_ADD, onGameRoomCreated);
sfs.addEventListener(SFSEvent.ROOM_CREATION_ERROR ...