Hello,
I have been trying to use the sfs.connect() command with no luck. Here is my code:
public function connectToSFS(pathToConfig:String = "config.xml") {
dispatchEvent (new SFSPGRevent (SFSPGRevent .SHOW_LOADER ));
ConnectionStatus_txt .text = "Connecting...";
//SFSPGRglobal .sfs.loadConfig (pathToConfig );
SFSPGRglobal .sfs.connect ("127.0.0.1", 9339);
}
If I use the loadConfig, all works fine. If I use the connect, I get an onConnect response from SFS, but there is not actually any data being transferred. I know of course because I am compiling the SWF in the Flash IDE and there is not any of the usually [SENDING][RECEIVING] messages.
When I had the problem, I looked at the SFS examples. I saw in the chat examples that there is a varialbe 'zone', but that is never acutally sent to the server when using the sfs.connect(). Why don't you need it when you use sfs.connect() but you do when you use sfs.loadConfig()?
take care,
lee
sfs.connect
Hi,
most of your assumptions are not correct. The connection for example doesn't send any data, so that's perfectly normal and the zone parameter is used at login time not during the connection.Please take some time to review the documentation, especially the most simple examples.
We provide a simple AS3 template under the Examples folder which provides a very basic code template for connecting, loggin and joining into a Room.
most of your assumptions are not correct. The connection for example doesn't send any data, so that's perfectly normal and the zone parameter is used at login time not during the connection.Please take some time to review the documentation, especially the most simple examples.
We provide a simple AS3 template under the Examples folder which provides a very basic code template for connecting, loggin and joining into a Room.
hi
hi
A zone is a set of rooms , u just specify which zone u want to enter . Fox eg there is a zone called simple chat and it has rooms like hall , garder etc
so basically u specify the zone u want to enter and then the room in that zone which u want to enter
A zone is a set of rooms , u just specify which zone u want to enter . Fox eg there is a zone called simple chat and it has rooms like hall , garder etc
so basically u specify the zone u want to enter and then the room in that zone which u want to enter