Depth problem, problem in displaying text over the dynamically loaded image

hi :slight_smile:
i am having problem in displaying text over the dynamically loaded image. text is there can be selected also but not visible as wew move cursor over the image it shows selection cursor.

i want to display small text over the thumbnail images. text is coming there, i have also seen in debugging mode it is there but not being displayed.
here is what i am doing

// ActionScript Document
/*
|| XML Used for hte document ||
<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<images>
<pic>
<image>images/1.jpg</image>
<caption>abc</caption>
<thumbnail>images/1.jpg</thumbnail>
</pic>
<pic>
<image>images/2.jpg</image>
<caption>def</caption>
<thumbnail>images/2.jpg</thumbnail>
</pic>
</images>

*/

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumb = [];
numRec = xmlNode.childNodes.length;
for (i=0; i<numRec; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
thumb* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
create_thumbnail(i);
}
firstImage();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“images2.xml”);
function create_thumbnail(num) {

thumbnail_mc.createEmptyMovieClip("t"+num,thumbnail_mc.getNextHighestDepth());
thumbnail_mc["t"+num].createEmptyMovieClip("photo_mc",thumbnail_mc["t"+num].getNextHighestDepth());

tlistener = new Object();
tlistener.onLoadInit = function(target_mc){
    target_mc._width = "100";
    target_mc._height = "100";
    target_mc._parent._x = (target_mc._width+5)*num;
    target_mc._parent.createTextField("text_txt",target_mc._parent.getNextHighestDepth(), 0, 0, 300, 100);
    target_mc._parent.text_txt.text = "sdfkljsdklfj";

    var mclProgress:Object = image_mcl.getProgress(target_mc);
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0xFFFF00;
    my_fmt.underline = true;
    my_fmt.bold=true;
    
    target_mc.createTextField("filesize_txt", target_mc.getNextHighestDepth(), 0, target_mc._height, target_mc._width + 25, 22);
    target_mc.filesize_txt.text = mclProgress.bytesLoaded+" of "+mclProgress.bytesTotal+" bytes loaded";
    target_mc.filesize_txt.setTextFormat(my_fmt);
    
}

image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumb[num],thumbnail_mc["t"+num].photo_mc);

}

i think this is the problem of depth but it is not falling under my eyes :slight_smile:

thanks :slight_smile: