Chat updated to Flash/Ajax client

it seems that some people had problems with the Applet, so I updated it to use a Flash/Ajax based client for web use. I used a library called AFLAX to do the client, as it can handle persistent connections with flash. Please stop by and check it out, especially if you had problems with the Applet version!

Very interesting. I connected one time but just stayed blank on few other attempts I made.

when it doesn’t work it fails with this (firefox, win2k)

Error: __flash__argumentsToXML is not defined
Source File: http://www.darkstarusers.com/client/lib/AFLAX/aflax.js
Line: 42

Why are two connections from the same computer not allowed? Is this technical limitation or a design decision?

Out of curiosity… how are you doing the FLASH client since we haven’t released a FLASH client API?

Not sure about the errors. Perhaps the message I gave is a bit ambiguous. All the client is saying is that someone with that name is already logged in. The second attempt actually boots the person out and then you can reconnect. So, it isn’t multiple connections that are the problem, just multiple users with the same name.

It does appear that the new client might not be timing people out and removing them after a reasonable period of time, so I might throw in a little fix for that.

MuahahahahahahahahahahahahahahahahahhahaHAHhahahHahh!

Actually, I’m just using a socket from flash to basically tunnel over to a slightly tweaked version of the telnet client.

This is the general layout:

Telnet / Flash Client -> Apache Mina on 4000/4001 -> SGS

Mina serves up a “shell” based on what port you connect on and the shell is what actually interacts with the real SGS Client.

Heh okay

I would like to see a real FLASH client someday. Wuuld be a good community project hint hint

JK

I’ll add it to the list :slight_smile:

I believe I fixed the timeout / not logging people out bug. The multiple logins message is now more clear. It allows as many connections as you want, you just have to select a username that isn’t in use.

Based on the suggestion of some of the users, I changed the command parsing to be a bit more intuitive. All commands are now prefixed with a ‘/’. To look around the room you would type /look. If you do not prefix your command with ‘/’, then whatever you type will be sent to your default command, which is /say. Of course, you can override this with the /defaultcommand command. The ‘#’ prefix is still valid as the groovy interpreter binding.

The short version, typing will now default to chatting unless you do something special :slight_smile: