May be this is what you after?
trace("Full games: " + games.game.(user.length() == 3).length());
trace("Vacant games: " + games.game.(user.length() < 3).length());
// Trace
Full games: 1
Vacant games: 2
Kenneth Kawamoto
http://www.materiaprima.co.uk/
Alexander Farber wrote:
Hello,
my server
Yeah you should add attributes to your game nodes to seperate them:
var games:XML =
;
then you can use E4X to find the actually amount of users in each game:
**Pseudo Code**
games.game(@id == "1").user.length();
Nathan Mynarci
Hi,
I am not sure you can count the sub-nodes without having some sort
of differentiator between parent nodes.
You might have to loop through the list of games to find how many
users are in each one as your tests for 2 & 3 are returning the total
number of "user" nodes in the tree.
Hello,
my server delivers XML data over socket,
representing games, with up to 3 players in each.
In my custom component I'd like to display
a summary: total number of games,
number of full games (3 players)
number of vacant games (joinable, because less than 3 players).
I've prepared a reduced
Hello list -
Cannot sign up to "bugs.powerflasher.com/jira" - Captcha seems to be having
problems. tried using Firefox / Chrome and Safary ( and on PC too ) - could not
sign up to submit bug. Contacted the FDT team, but no reply yet...
anyway thought i'd post it here - in case someone from po
It is a special event. It is one of the few broadcast events. The
manual is quite clear on this. It is not dispatched for focus issues.
Think I have been looking at the old AS3 reference - it is clear in the
docs for CS5, but Flash 9.0 ref is less verbose. Sorry, I understand
the broadcast
6 matches
Mail list logo