# Help with more than one dynamic fields in AS2

**URL:** https://forum.kirupa.com/t/help-with-more-than-one-dynamic-fields-in-as2/291989
**Category:** Uncategorized
**Created:** [July 8, 2009, 3:56pm UTC](https://forum.kirupa.com/t/help-with-more-than-one-dynamic-fields-in-as2/291989 "2009-07-08T15:56:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![radt](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@radt](https://forum.kirupa.com/u/radt)
#### Post date: [July 8, 2009, 3:56pm UTC](https://forum.kirupa.com/t/help-with-more-than-one-dynamic-fields-in-as2/291989/1 "2009-07-08T15:56:44Z")

</div>

Im reading dynamic content from an xml and displaying in several text fields Im generating according to the content. But when I try to generate more than one field, only one of them is displayed.

```
var field2Name:TextField = this.createLabel("field2Name", 900, recordArr[objIxSel][55]);

field2Name.depthChild0._alpha = 0;
field2Name.setStyle("borderStyle", "none" ); 
field2Name.setStyle("fontFamily",recordArr[objIxSel][20]);
field2Name.setStyle("color",recordArr[objIxSel][23]);
field2Name.setStyle("fontStyle",recordArr[objIxSel][21]);
field2Name.setStyle("fontWeight",recordArr[objIxSel][21]);
field2Name.setStyle("fontSize",recordArr[objIxSel][22]);
field2Name.multiline = true;
field2Name.wordWrap = true;

field2Name._x = 457;
if (recordArr[objIxSel][49]!="" || recordArr[objIxSel][50]!=""){
    yy = yy+30;
}else{
    yy = yy+10;
}

field2Name._y = yy;

field2Name.html=false;
field2Name.selectable = false;

field2Name.setSize(50, 50);
field2Name.autoSize = true;

```

var desc:TextField = this.createLabel(“desc”, 900, recordArr[objIxSel][49]);

desc.depthChild0.\_alpha = 0;  
desc.setStyle(“borderStyle”, “none” );  
desc.setStyle(“fontFamily”,recordArr[objIxSel][20]);  
desc.setStyle(“color”,recordArr[objIxSel][23]);  
desc.setStyle(“fontStyle”,recordArr[objIxSel][21]);  
desc.setStyle(“fontWeight”,recordArr[objIxSel][21]);  
desc.setStyle(“fontSize”,recordArr[objIxSel][22]);  
desc.multiline = true;  
desc.wordWrap = true;

desc.\_x = 457;  
desc.\_y = 150;

desc.html=false;  
desc.selectable = false;

desc.setSize(393, 150);  
desc.autoSize = true;
