sorry, my bad.
the code above with String key:myObj.getKeys() works just fine.
thanks for the help!
Search found 98 matches
- 27 Jan 2011, 19:57
- Forum: SFS2X Questions
- Topic: using the Iterator
- Replies: 6
- Views: 8926
- 27 Jan 2011, 18:46
- Forum: SFS2X Questions
- Topic: using the Iterator
- Replies: 6
- Views: 8926
- 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
http://docs2x.smartfoxserver.com/api-do ... Array.html
- 26 Jan 2011, 13:14
- Forum: SFS2X Questions
- Topic: using the Iterator
- Replies: 6
- Views: 8926
um, ok.
next() returns the actual object, so:
problem solved
next() returns the actual object, so:
Code: Select all
while(mySFSArray.iterator().hasNext())
{
myString += mySFSArray.iterator().next();
}
problem solved
- 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...
- 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.
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.
- 24 Jan 2011, 11:57
- Forum: SFS2X Questions
- Topic: Is the SFS1 better than SFS2?
- Replies: 4
- Views: 6267
- 24 Jan 2011, 10:23
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: online game
- Replies: 2
- Views: 5135
- 24 Jan 2011, 09:53
- Forum: SFS2X ActionScript 3 API
- Topic: events not firing after un/re-subscribing.
- Replies: 2
- Views: 5742
- 20 Jan 2011, 15:02
- Forum: SFS2X Questions
- Topic: MySQL field alias not supported?
- Replies: 6
- Views: 9579
- 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) ...
- 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...
- 18 Jan 2011, 12:21
- Forum: SFS2X Questions
- Topic: Do i really need a lobby?
- Replies: 2
- Views: 5171
- 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...
- 13 Jan 2011, 18:18
- Forum: SFS2X Questions
- Topic: Dedicated Server Hosting
- Replies: 9
- Views: 12899