# Please Help

**URL:** <https://forum.kirupa.com/t/please-help/184163>\
**Category:** Uncategorized\
**Created:** [April 2, 2006, 9:13pm UTC](https://forum.kirupa.com/t/please-help/184163 "2006-04-02T21:13:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpharaven](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@alpharaven](https://forum.kirupa.com/u/alpharaven)\
**Post date:** [April 2, 2006, 9:13pm UTC](https://forum.kirupa.com/t/please-help/184163/1 "2006-04-02T21:13:51Z")

</div>

How can I make the following code create a picture gird and once its past a certain line the viewer will have to scroll down/up. Here is what I have so far:

```auto
var thumb_spacing = 75;

// load variables object to handle loading of text
var textload = new LoadVars();
textload.onData = function(raw_text){
    info_txt.text = raw_text;
}
//Tumbnails
function Generategallery(gallery_xml){
    var galleryPictures = gallery_xml.firstChild.childNodes;
    for (var i = 0; i < galleryPictures.length; i++){
        var currentPicture = galleryPictures*;
        var Thumb = menu_mc.createEmptyMovieClip("thumbnail_mc"+i,i);
        Thumb._y = i * thumb_spacing;
        Thumb.createEmptyMovieClip("thumb_container",0);
        Thumb.thumb_container.loadMovie(currentPicture.attributes.thumb);
        Thumb.title = currentPicture.attributes.title;
        Thumb.image = currentPicture.attributes.image;
        Thumb.description = currentPicture.attributes.description;
        Thumb.onRollOver = Thumb.onDragOver = function(){
            title_txt.text = this.title;
        }
        Thumb.onRollOut = Thumb.onDragOut = function(){
            title_txt.text = "";
        }
        Thumb.onRelease = function(){
            pic.holder.loadMovie(this.image);
            textload.load(this.description);
        }
    }
}

```

Thanks!!!
