Sign in to follow this  
  • entries
    3
  • comment
    1
  • views
    634

Day 2

Sign in to follow this  
affinity

20 views

Okay, I slacked off for a week before I even started. The hardest part is getting started, right? I'll just blame it on midterms :D. Anyways, I need to try to make a couple baby steps each day.

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.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now