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;
Although this works, it makes me wonder what the point of the Connector.configPath member is. Is that only used if you are creating the component through MXML? The documentation isn't very clear on this point.