This may be functionally the same thing as you did (but easier semantically to understand) but I did the following (at least as close as I can remember typing this from my BlackBerry)
arColl = {srv.lastResult.tags.to.desried.elements} var num:int = arColl.length Sent via BlackBerry from T-Mobile -----Original Message----- From: "kenny14390" <[EMAIL PROTECTED]> Date: Sat, 22 Mar 2008 09:42:32 To:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting a label to be the length of a List component I solved the problem in a "brute force" method of counting iteratively during the process of compiling the XML file and writing out the <length> tag before each major closing tag. This is actually a nifty technique because accessing the size of a cluster of elements works just like OOP convention of (something).length - though "length" is sometimes followed by empty parenthesis. --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com, "kenny14390" <[EMAIL PROTECTED]> wrote: > > The id of my HTTPService is "srv" and I get errors on the line that I > write: > > srv.lastResult.length() > > My XML tree looks somewhat like this: > > Schedule > - Info > - Term > --Department > ---Course > ----Section > --Department > ... > > It pretty much goes on and on in the "Department, Course, Section" > elements. I'm trying to find out how many Department elements there > are in the Term, and how many Course elements there are for a given > Department. > > Check out http://bingbuilder. <http://bingbuilder.com> com for how it looks > now. I'd like to > display the length of each list under the List component. Is there > anything else that I can try? > > Thanks for your help > > --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com, > "Alex Harui" <aharui@> wrote: > > > > Get the HTTPService lastResult.length() > > > > > ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/