# Thumbnail Scroller with titles for each thumbnail

**URL:** https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692
**Category:** flash
**Created:** [October 22, 2006, 4:50pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692 "2006-10-22T16:50:31Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 22, 2006, 4:50pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/1 "2006-10-22T16:50:31Z")

</div>

I’m trying to modify the Gallery with a thumbnail scroller thats on here.

What I want to do is add it so that each thumbnail has a title below it as well.

Does anyone know if this has been covered anywhere? i@ve spent the weekend searching google and here and i’m at my wits end now…

Any help or pointers much appreciated.

Cheers in advance 🙂

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 23, 2006, 6:47pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/2 "2006-10-23T18:47:49Z")

</div>

_bump_

---

<div class="post-metadata">

### Author: ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)
#### Post date: [October 24, 2006, 2:14am UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/3 "2006-10-24T02:14:46Z")

</div>

What gallery are you talking about. There are about 100 on this site.

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 8:06am UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/4 "2006-10-24T08:06:20Z")

</div>

Hey 🙂

Sorry its this one: [http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

What i want to do is have a title under each thumbnail.

(well what i eventually want to do is have a title and description to the right of each thumbnail but if I find out how to add a title then i can add more myself) 🙂

Cheers in advance.

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 8:34am UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/5 "2006-10-24T08:34:18Z")

</div>

I tried doing it by creating a movieclip with the linkage id of thumbText and then instead of creating an empty movieclip for the thumbs to be loaded into having it attach this movie instead and load the thumbs into it.

In the thumbext movieclip theres is a blank area for the thumb and then a dynamic text box for the title.

I used the following code but nothing showed up:

thumbnail\_mc.attachMovie (“thumbText”, “thumbText”+k, thumbnail\_mc.getNextHighestDepth(), \_x:17.5, \_y:30});

and put this inside the thumbnails\_fn

any help?

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 9:40am UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/6 "2006-10-24T09:40:27Z")

</div>

Think i’ve worked out how to do it but cant seem to do it.

heres the code that creates the thumbnails:

```auto
 function thumbnails_fn(k) {

thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {

target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*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);

} 

```

is there a way i can use actionscript to create a dynamic text field within there and then assign the title value from the array i created at beginning of file?

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 1:46pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/7 "2006-10-24T13:46:25Z")

</div>

i’m guessing i need to assign my movie clip with the text fields in to each image thats created

thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());

so would that be thumbnail\_mc.t

or how do i get it to attach to each instance ie t0 t1 t2 t3…

---

<div class="post-metadata">

### Author: ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)
#### Post date: [October 24, 2006, 3:09pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/8 "2006-10-24T15:09:20Z")

</div>

[ot]There is a way to edit your posts you know[/ot]

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 3:53pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/9 "2006-10-24T15:53:09Z")

</div>

## off topic:

Sorry

---

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [October 24, 2006, 5:02pm UTC](https://forum.kirupa.com/t/thumbnail-scroller-with-titles-for-each-thumbnail/204692/10 "2006-10-24T17:02:27Z")

</div>

managed to get it working! 🙂
