# Dynamically create textboxes in AS

**URL:** <https://forum.kirupa.com/t/dynamically-create-textboxes-in-as/175184>\
**Category:** flash\
**Created:** [January 12, 2006, 11:35am UTC](https://forum.kirupa.com/t/dynamically-create-textboxes-in-as/175184 "2006-01-12T11:35:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewi\_p](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lewi\_p](https://forum.kirupa.com/u/lewi_p)\
**Post date:** [January 12, 2006, 11:35am UTC](https://forum.kirupa.com/t/dynamically-create-textboxes-in-as/175184/1 "2006-01-12T11:35:29Z")

</div>

Hi,

I’m loading in some data from an XML into Flash then searching a level and returning a number depending on how many nodes are on that level (at the moment is “2”) Then I collect bits of info from each and trace the results which works fine, problem is I can’t seem to create a separte textbox for each result?

Any suggestions…below is my code:

```auto
_root.total = _root.xmlNode.childNodes[0].childNodes.length;
for (i=0; i<total; i++) {
venue* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[8].firstChild;
team_a* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[0].firstChild;
team_b* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[1].firstChild;
kick_off* = _root.xmlNode.childNodes[0].childNodes*.childNodes[0].childNodes[5].firstChild;
trace((venue*) + ": " + (team_a*) + " v " + (team_b*) + ", Kick off at " + (kick_off*));

```

I thought I would just need to write something like:

fixture\*.text = (venue\*) + ": " + (team\_a\*) + " v " + (team\_b\*) + ", Kick off at " + (kick\_off\*);

But that doesn’t work…it just displays the 2nd result
