# Dynamic Text array to display Data from XML file

**URL:** <https://forum.kirupa.com/t/dynamic-text-array-to-display-data-from-xml-file/222039>\
**Category:** flash\
**Created:** [April 10, 2007, 11:31am UTC](https://forum.kirupa.com/t/dynamic-text-array-to-display-data-from-xml-file/222039 "2007-04-10T11:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maher1](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@Maher1](https://forum.kirupa.com/u/Maher1)\
**Post date:** [April 10, 2007, 11:31am UTC](https://forum.kirupa.com/t/dynamic-text-array-to-display-data-from-xml-file/222039/1 "2007-04-10T11:31:05Z")

</div>

Hello

I’m new in the forum,i want to make a photo gallery which loads images, thumbnails and description from XML file , no problem with that [http://www.kirupa.com/forum/showthread.php?t=242767](http://www.kirupa.com/forum/showthread.php?t=242767)  
i made the Gallery in one column, want to add dynamic text field beside each thumbnail in order to display description  
i used this code, but i didn’t work ☹

```auto
this.createTextField(my_txt*, 1, 100, 100, 300, 100);
my_txt*.multiline = true;
my_txt*.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
my_txt*.text = description*;
my_txt*.setTextFormat(my_fmt);

```

can anyone help me to find a tutorial to do so ?  
Thanks!
