# Xml length with dynamic buttons

**URL:** https://forum.kirupa.com/t/xml-length-with-dynamic-buttons/302111
**Category:** Uncategorized
**Created:** [December 22, 2009, 12:27am UTC](https://forum.kirupa.com/t/xml-length-with-dynamic-buttons/302111 "2009-12-22T00:27:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dvinatea](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@dvinatea](https://forum.kirupa.com/u/dvinatea)
#### Post date: [December 22, 2009, 12:27am UTC](https://forum.kirupa.com/t/xml-length-with-dynamic-buttons/302111/1 "2009-12-22T00:27:56Z")

</div>

I’m trying read xml from flash within a class. The only thing that’s missing is creating as many buttons as the length of xml. The xml length works well in the function that loads the xml. When I put the xml length in the function on the buttons, it is equal to 0. How can I make all function read the value of xml length?

thank you.
