First this forum is intended for questions about Flex
Builder. Flex language questions should be posted in the Flex
General Discussion forum.
Also, do not use Array as a dataProvider unless you are
certain you will never be updating the data dynamically. Array does
not dispatch the events necessary to cause the bound controls to
update. Instead, use ArrayCollection. (or XML or XMLListCollection)
A safe, generic way to get the length is: