I'm a bit confused about the Connector control and config info.
I see there is a Connector.configPath member. I tried setting this to the config file and then calling connect(), but that fails.
It seems that I instead have to call sfs.LoadConfig() and then get the config data and stuff it into the Connector component before calling connect().
Code: Select all
public function onSFSConfigLoadSuccess( event:SFSEvent ) : void
{
var config:ConfigData = sfs.config;
connector.serverIpAddress = config.host;
connector.serverPort = config.port;
connector.connect();
}