sfs.connect
Posted: 06 Jan 2010, 03:00
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
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