# Modifying the scolling thumbnail gallery

**URL:** <https://forum.kirupa.com/t/modifying-the-scolling-thumbnail-gallery/209649>\
**Category:** flash\
**Created:** [December 11, 2006, 5:44am UTC](https://forum.kirupa.com/t/modifying-the-scolling-thumbnail-gallery/209649 "2006-12-11T05:44:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modernmortal](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@modernmortal](https://forum.kirupa.com/u/modernmortal)\
**Post date:** [December 11, 2006, 5:44am UTC](https://forum.kirupa.com/t/modifying-the-scolling-thumbnail-gallery/209649/1 "2006-12-11T05:44:13Z")

</div>

Hi,

Can anyone help me modify this code from the tutorial here on kirupa?  
[http://www.kirupa.com/developer/mx2004/thumbnails3.htm](http://www.kirupa.com/developer/mx2004/thumbnails3.htm)

I’m just trying to change it so that a small line of text appears under each thumbnail. Each line of text is pulled from the XML file and is created using createtextfield. But after a few hours trying to warp the code to get it to work I still haven’t gotten anywhere.

Any help is appreciated. thanks.

I’ve tried many different approaches of attaching these text fields to the mc but no go. These two lines do create a text field for each thumb-but these fields do not scroll with the thumbnails. I’d like these text fields to be inside the “thumbnail\_mc” clip so that when the thumbnails scroll the text moves along with it.  
////////////////////////////////////////  
this.createTextField(“price”+k,k,0+(k\*150),0,200,20);  
this[“price”+k].text = price[k];

This is the area of code in question:  
////////////////////////////////////////  
function thumbnails\_fn(k) {  
thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());  
this.createTextField(“price”+k,k,0+(k\*150),0,200,20);  
this[“price”+k].text = price[k];

```
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
    target_mc._x = (target_mc._width+0)*k;
    target_mc.pictureValue = k;
    target_mc.onRelease = function() {
        p = this.pictureValue-1;
        nextImage();
    };
    target_mc.onRollOver = function() {
        this._alpha = 50;
        thumbNailScroller();
    };
    target_mc.onRollOut = function() {
        this._alpha = 100;
    };
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

```

}
