Anyways, today I followed the sfs youtube totorial for creating a basic chat. After running into a plethora of newbie problems (like not loading the SFS library, using the flex 3 package instead of flex 4, mis-spelling 'config', I can get everything to compile, but something is wrong when I try to load the config/trying to connect to the server.
protected function login_clickHandler(event:MouseEvent):void
{
chatLog.text += 'Loading Config...\n';
_sfs.loadConfig('config.xml');
}
private function onConnection(event:SFSEvent):void
{
if(event.params.success)
{
chatLog.text += 'Connection Success~~!!\n';
var request:LoginRequest = new LoginRequest('');
_sfs.send(request);
}
else
{
chatLog.text += 'Connection Failed...\n';
}
}
Minimum goals for tomorrow: Find out what is wrong with the configuration/connection. Do I have to build it first and put it in the SFS folder?
Optional: Start putting more elements into the chat room using the examples provided the SFS team.