# Flash8 AS2 parsing text from XML

**URL:** <https://forum.kirupa.com/t/flash8-as2-parsing-text-from-xml/228500>\
**Category:** flash\
**Created:** [June 8, 2007, 9:49am UTC](https://forum.kirupa.com/t/flash8-as2-parsing-text-from-xml/228500 "2007-06-08T09:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilot4ik](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pilot4ik](https://forum.kirupa.com/u/pilot4ik)\
**Post date:** [June 8, 2007, 9:49am UTC](https://forum.kirupa.com/t/flash8-as2-parsing-text-from-xml/228500/1 "2007-06-08T09:49:55Z")

</div>

Hello there,  
[http://mediadesign.bg/etere](http://mediadesign.bg/etere) - this is the current site, I’m working on. It’s almost finished, but one problem occurred for me - page “NEWS” form the left menu :  
I have images which coming from the XML and they’re listing with some padding - the function is like this :

///// listing images  
function thumbnails\_fn(k) {  
thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
target\_mc.\_y = hit\_left.\_y+(target\_mc.\_height+30)\*k;  
};  
image\_mcl = new MovieClipLoader();  
image\_mcl.addListener(tlistener);  
image\_mcl.loadClip(image[k], “thumbnail\_mc.t”+k);  
}  
//////end of listing

so this is working properly, but I want to list the text with the news assigned with every image at the right part, at the moment they are only 10 text fields in a \_mc which is moving with the images which means if there’s a new news the images will be listed but there will be no text fields for the text. And I don’t know how to create text fields listed like the images…  
I’ve tried some As like this :

////// listing images and textfields  
function thumbnails\_fn(k) {  
thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());  
text\_mc.createEmptyMovieClip(“t”+k, text\_mc.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
target\_mc.\_y = hit\_left.\_y+(target\_mc.\_height+30)\*k;  
};  
txlistener = new Object();  
txlistener.onLoadInit = function(targetx\_mc) {  
targetx\_mc.\_y = hit\_left.\_y+(targetx\_mc.\_height+30)\*k;  
targetx\_mc.border = true;  
targetx\_mc = new TextField(“text\_mc.t”+k, getNextHighestDepth, txt\_left, txt\_top, 360, 20);  
};  
image\_mcl = new MovieClipLoader();  
image\_mcl.addListener(tlistener);  
image\_mcl.loadClip(image[k], “thumbnail\_mc.t”+k);  
//textfield  
txt\_left = thumbnail\_mc.\_x+210;

```
txt_top = targetx_mc.t._y;
//imagex_mcl = createTextField("text_mc.t"+k, getNextHighestDepth, txt_left, txt_top, 360, 20);
imagex_mcl = new MovieClipLoader();
imagex_mcl.addListener(txlistener);
imagex_mcl.load(description[k], "text_mc.t"+k);
imagex_mcl.border = true;

```

//end  
but it only creates 1 text field, not a list.

The source for the images is taken from the Kirupa Tutorial for Dynamic Gallery with thumbnails, and if you know how to solve my problem … please help.  
Martin  
[www.fragment33.com](http://www.fragment33.com)
