This probably has a simple solution.
I have an xml file that I load and parse with no problem. I have a number of buttons that are on the stage. I want to link the buttons with the xml file. I have simplified it here
The sample xml file is like this
<xml>
<item>
<name>George</name>
</item>
<item>
<name>Bill</name>
</item>
<item>
<name>Henry</name>
</item>
</xml>
I have three buttons on the stage. When I click button _1, I want to access the value in the first element in the xml file (George). And so on with button_2 and button_3.
I’m guessing you put the buttons in an array. How do you link the button array with the xml array?
Thanks in advance.