Search found 15 matches

by Ilithios
14 Jul 2012, 17:17
Forum: SFS2X Questions
Topic: Dynamic room removal by group?
Replies: 10
Views: 2014

Re: Dynamic room removal by group?

It may be more effecient (and how I'd probably end up doing it) to getSubscribedGroups() from the user on USER_DISCONNECT and then create a function shouldRemoveGroup() to loop through each of the rooms in each of the group (note the nested loop within a loop here) and then check to see if room.get...
by Ilithios
14 Jul 2012, 16:13
Forum: SFS2X Questions
Topic: Dynamic room removal by group?
Replies: 10
Views: 2014

Re: Dynamic room removal by group?

So I take it that iterating through all the users is indeed the best way find out if a room group has no subscribers?
by Ilithios
13 Jul 2012, 15:39
Forum: SFS2X Questions
Topic: Guide: Enable JSP in Jetty
Replies: 8
Views: 5671

Re: Guide: Enable JSP in Jetty

Now I just wish it would come with Jetty 8 so it would have Servlet 3.0. Guess I have to run another web server alongside it or is it upgradable?
by Ilithios
13 Jul 2012, 15:15
Forum: SFS2X Questions
Topic: Dynamic room removal by group?
Replies: 10
Views: 2014

Re: Dynamic room removal by group?

Can you explain the difference between USER_LOST, USER_DISCONNECT, and USER_LOGOUT? I have read the api docs on these and they are sparse and ambiguous to say the least. In fact, I don't even see a USER_LOST event. Here's what I have now and it seems to work in my very limited testing so far, but I ...
by Ilithios
13 Jul 2012, 09:08
Forum: SFS2X Questions
Topic: Dynamic room removal by group?
Replies: 10
Views: 2014

Re: Dynamic room removal by group?

Hi, Yes, I know I can make rooms not get removed, but I want them to be removed, not only so that they don't hang around in the system creating memory problems but also because properties of the rooms can be changed in the database, and then the version in SmartFox would never get the update, but I ...
by Ilithios
12 Jul 2012, 16:32
Forum: SFS2X Questions
Topic: Dynamic room removal by group?
Replies: 10
Views: 2014

Dynamic room removal by group?

Hi folks, So basically here's the deal. I have a bunch of groups with rooms defined in a database. When a user logs in, he is automatically part of a group. I have an extension that checks to see if the rooms defined in the database exist in SmartFox and adds them if they do not, then subscribes the...
by Ilithios
14 Apr 2012, 02:05
Forum: SFS2X ActionScript 3 API
Topic: SmartFox can't find the room group...
Replies: 3
Views: 1774

Re: SmartFox can't find the room group...

Thanks for the answer. Unfortunately, I already defined the groups in there. Sorry that wasn't clear in my post.

My Public Room Groups looks like this(obviously just test group names :) ): default,joe,fred

Anything else I need to do?
by Ilithios
12 Apr 2012, 12:09
Forum: SFS2X ActionScript 3 API
Topic: SmartFox can't find the room group...
Replies: 3
Views: 1774

SmartFox can't find the room group...

Working with SmartFox Server so far has been 2 minutes of coding followed by hours of trying to find the solution to some absurd error. :-) This time it simply won't acknowledge the existence of a group. I don't know much, but as I understand it, the room group is just a variable attached to a room,...
by Ilithios
12 Apr 2012, 10:32
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Re: Suddeny can't connect

Nevermind, suddenly it's working for no apparent reason. Still not the Google Chrome issue but I can use Firefox to test. Thanks for the help.
by Ilithios
12 Apr 2012, 10:01
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Re: Suddeny can't connect

Ok, so I just discovered that this error only happens in Google Chrome. I tested in Firefox and no error. So, let's ignore that for right now and move on to the next problem. This code: try { sfs.loadConfig("sfs-config.xml", true); lblErrors.text = sfs.isConnected.toString(); } catch (ex:E...
by Ilithios
12 Apr 2012, 09:24
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Re: Suddeny can't connect

The error seems to be with reading the config file, not with connecting because when I do this:

sfs.loadConfig("sfs-config.xml", false);

same error
by Ilithios
12 Apr 2012, 09:21
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Re: Suddeny can't connect

Thanks for the response. however I tried exiting the browser, eve rebooting the whole computer, but it didn't help :-(
by Ilithios
12 Apr 2012, 07:10
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Re: Suddeny can't connect

I'm not sure what you mean. I don't have a web server on my computer. I'm using Google Chrome to run the swf.
by Ilithios
12 Apr 2012, 00:52
Forum: SFS2X ActionScript 3 API
Topic: Suddeny can't connect
Replies: 9
Views: 4580

Suddeny can't connect

Hello, So, I have this line: sfs.connect("localhost", 9933); However, when I check right after it whether it is connected, it is not. So I changed to this line: sfs.loadConfig("sfs-config.xml", true); Now I get an Error #2148 on that line. I researched that error and everything s...
by Ilithios
04 Apr 2012, 12:32
Forum: SFS2X Questions
Topic: Listing and joining games
Replies: 1
Views: 463

Listing and joining games

Hello, I need a little help getting started here. I've been trying, but can't seem to figure out how to do this even though it seems like it shouldn't be that difficult. One problem is that a lot of the tutorials and sample code contain .fla files I can't open because I'm using Flex and not the Flas...

Go to advanced search