how do I find the number of xml children in AS3

Posted by vasion on Stack Overflow See other posts from Stack Overflow or by vasion
Published on 2010-04-16T19:09:29Z Indexed on 2010/04/16 19:13 UTC
Read the original article Hit count: 218

so live docs says this for calling .lenght() on an XML object

For XML objects, this method always returns the integer 1. The length() method of the XMLList class returns a value of 1 for an XMLList object that contains only one value.

i called it on an xml that looked like this:

<xml>
<picture>1</picture>
<picture>2</picture>
</xml>

and it reallt returned 1. how do i get the number of children in my xml?

© Stack Overflow or respective owner

Related posts about flash

Related posts about Xml