Search found 98 matches

by dingo
27 Jan 2011, 19:57
Forum: SFS2X Questions
Topic: using the Iterator
Replies: 6
Views: 8926

sorry, my bad.

the code above with String key:myObj.getKeys() works just fine.

thanks for the help!
by dingo
27 Jan 2011, 18:46
Forum: SFS2X Questions
Topic: using the Iterator
Replies: 6
Views: 8926

Lapo, how would i loop through an SFSObject? I used ISFSObject myObj = currentRoom.getVariable("myObj").getSFSObjectValue(); for(String key:myObj.getKeys()) { trace(myObj.getUtfString(key)); } but it creates an infinite loop
by dingo
27 Jan 2011, 18:36
Forum: SFS2X Questions
Topic: using the Iterator
Replies: 6
Views: 8926

If I understand correctly, SFSArray & SFSObject contain an iterator:
http://docs2x.smartfoxserver.com/api-do ... Array.html
by dingo
26 Jan 2011, 13:14
Forum: SFS2X Questions
Topic: using the Iterator
Replies: 6
Views: 8926

um, ok.

next() returns the actual object, so:

Code: Select all

while(mySFSArray.iterator().hasNext())
{
          myString += mySFSArray.iterator().next();
}


problem solved
:roll:
by dingo
26 Jan 2011, 13:09
Forum: SFS2X Questions
Topic: using the Iterator
Replies: 6
Views: 8926

using the Iterator

Hi How would i go about getting the current Object when using the Iterator to go through an SFSArray? while(mySFSArray.iterator().next()) { myString += mySFSArray.??? } I'm looking for something like mySFSArray.get(); Sure i could use mySFSArray.getUtfString(i), but...
by dingo
26 Jan 2011, 11:46
Forum: SFS2X ActionScript 3 API
Topic: Can two clients communicate directly?
Replies: 4
Views: 9222

hi there

yes it's possible and you don't need SFS for it
check: http://labs.adobe.com/technologies/cirrus/

That's for instance how chatroulette is made.
by dingo
24 Jan 2011, 11:57
Forum: SFS2X Questions
Topic: Is the SFS1 better than SFS2?
Replies: 4
Views: 6267

I just converted from SFS1 to SFS2X, i think it's great.
by dingo
24 Jan 2011, 10:23
Forum: SmartFoxServer 1.x Discussions and Help
Topic: online game
Replies: 2
Views: 5135

omgpop.com
by dingo
24 Jan 2011, 09:53
Forum: SFS2X ActionScript 3 API
Topic: events not firing after un/re-subscribing.
Replies: 2
Views: 5742

True, I didn't think of that.
I'm doing it the other way around now anyway.

Thanks
by dingo
20 Jan 2011, 15:02
Forum: SFS2X Questions
Topic: MySQL field alias not supported?
Replies: 6
Views: 9579

Did some more testing, when doing the query with a java Statement.executeQuery(sql) it works fine.

But when i convert the returned ResultSet with SFSArray.newFromResultSet(queryRes), the alias is missing again.
by dingo
20 Jan 2011, 14:00
Forum: SFS2X Questions
Topic: MySQL field alias not supported?
Replies: 6
Views: 9579

MySQL field alias not supported?

Hi I'm doing the following on the Server String sql = "SELECT users.id as sqlID FROM users WHERE users.id="+6; ISFSArray queryRes = dbManager.executeQuery(sql); The Dump i receive is: (sfs_object) (int) id: 6 Note that the field is not returned as the alias (sqlID) ...
by dingo
19 Jan 2011, 18:59
Forum: SFS2X ActionScript 3 API
Topic: events not firing after un/re-subscribing.
Replies: 2
Views: 5742

events not firing after un/re-subscribing.

Hi there I think I've found a possible bug in the AS3 client API I have a group called "chicken", the user is only subscribed when he's not in a room from "chicken". When he leaves a chicken-room, he's resubscribed to "chicken" so he can see which chicken-rooms are avai...
by dingo
18 Jan 2011, 12:21
Forum: SFS2X Questions
Topic: Do i really need a lobby?
Replies: 2
Views: 5171

yes you're right, i was kinda used to joining a limbo room from sfs1. But it's no longer needed in my case.

Thanks.
by dingo
18 Jan 2011, 10:13
Forum: SFS2X Questions
Topic: Do i really need a lobby?
Replies: 2
Views: 5171

Do i really need a lobby?

hi As the title says, do i really need it? The only advantage i see, is that you can send a PublicMessageRequest, but a disadvantage is hat i receive the userList of all 2000 players currently in the lobby, which i don't need. Or can it be disabled, that i receive the full userlist of the lobby? Thi...
by dingo
13 Jan 2011, 18:18
Forum: SFS2X Questions
Topic: Dedicated Server Hosting
Replies: 9
Views: 12899

i use vps.net, so far i'm happy with them.
a lot of people use linode or slicehost.

Go to advanced search