# Thumbnail Picture Gallery

**URL:** <https://forum.kirupa.com/t/thumbnail-picture-gallery/238218>\
**Category:** flash\
**Created:** [September 8, 2007, 12:11pm UTC](https://forum.kirupa.com/t/thumbnail-picture-gallery/238218 "2007-09-08T12:11:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuels27921](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@samuels27921](https://forum.kirupa.com/u/samuels27921)\
**Post date:** [September 8, 2007, 12:11pm UTC](https://forum.kirupa.com/t/thumbnail-picture-gallery/238218/1 "2007-09-08T12:11:19Z")

</div>

In this tutorial [http://www.kirupa.com/developer/mx2004/thumbnails5.htm](http://www.kirupa.com/developer/mx2004/thumbnails5.htm) you all explain how to make a Flash Thumbnail Photo Gallery. I am designing a bigger photo gellery based on this code how do I have the photo gallery to list 2 rows of thumbs 5 accross and 2 rows. This code is the code that designs the thumbnail movie clip.  
[COLOR=silver]function thumbnails\_fn(k) {[/COLOR] [COLOR=silver]thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth()); [/COLOR][COLOR=silver]tlistener = new Object(); [/COLOR][COLOR=silver]tlistener.onLoadInit = function(target\_mc) { [/COLOR][COLOR=silver][COLOR=red]**target\_mc.\_x = hit\_left.\_x+(target\_mc.\_width+5)\*k;**[/COLOR] [/COLOR][COLOR=silver]target\_mc.pictureValue = k; [/COLOR][COLOR=silver]target\_mc.onRelease = function() { [/COLOR][COLOR=silver]p = this.pictureValue-1; [/COLOR][COLOR=silver]nextImage(); [/COLOR][COLOR=silver]}; [/COLOR][COLOR=silver]target\_mc.onRollOver = function() { [/COLOR][COLOR=silver]this.\_alpha = 50; [/COLOR][COLOR=silver]thumbNailScroller(); [/COLOR][COLOR=silver]}; [/COLOR][COLOR=silver]target\_mc.onRollOut = function() { [/COLOR][COLOR=silver]this.\_alpha = 100; [/COLOR][COLOR=silver]}; [/COLOR][COLOR=silver]}; [/COLOR][COLOR=silver]image\_mcl = new MovieClipLoader(); [/COLOR][COLOR=silver]image\_mcl.addListener(tlistener); [/COLOR][COLOR=silver]image\_mcl.loadClip(thumbnails[k], “thumbnail\_mc.t”+k); [/COLOR][COLOR=silver]} [/COLOR]
