# Disabling thumbnails

**URL:** <https://forum.kirupa.com/t/disabling-thumbnails/255261>\
**Category:** Uncategorized\
**Created:** [March 20, 2008, 3:14pm UTC](https://forum.kirupa.com/t/disabling-thumbnails/255261 "2008-03-20T15:14:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukino09](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lukino09](https://forum.kirupa.com/u/lukino09)\
**Post date:** [March 20, 2008, 3:14pm UTC](https://forum.kirupa.com/t/disabling-thumbnails/255261/1 "2008-03-20T15:14:39Z")

</div>

Hi, I have a little problem which I can’t figure out ☹  
I have this thumbnail gallery with loaders set up, while i click on a thumb and the bigger image is loading I would like to disable all the thumbs so that the user wont be able to change picture while the loading is going on…here’s my code, I know where to put all the stuff, I just can’t figure out the exact target to get to the thumbs to disable them :run:  
here’s my code…thanks in advance for any help 🙂

```auto
function callThumbs() {
    sezione1.createEmptyMovieClip("container_mc",this.getNextHighestDepth());
    sezione1.container_mc._x = gallery_x;
    sezione1.container_mc._y = gallery_y;

    var clipLoader:MovieClipLoader = new MovieClipLoader();
    var preloader:Object = new Object();
    clipLoader.addListener(preloader);

    for (var i:Number = 0; i<myImagesTotal; i++) {

        var thumbURL:String = myImages*.attributes.thmb;

        var myThumb_mc:MovieClip = sezione1.container_mc.createEmptyMovieClip(i, sezione1.container_mc.getNextHighestDepth());
        myThumb_mc._y = 20+Math.floor(i/columns)*spacey;
        myThumb_mc._x = 200+(i%columns)*spacex;
        
        clipLoader.loadClip("thumbs/"+thumbURL,myThumb_mc);
        var modelloMaglia:String = myImages*.attributes.modM;

        // THUMB LOADER
        preloader.onLoadStart = function(target) {// on load start
            //trace("loading "+target._name);
            t = sezione1.container_mc.attachMovie("spinner", "spinner"+target, sezione1.container_mc.getNextHighestDepth());
            //t._x = target._x;
            //t._y = target._y;
            t._x = target._x+17;
            t._y = target._y+15;
            t._xscale = 70;
            t._yscale = 70;
            //trace(t._name);
        };
        preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {// on load progress
            //trace("loaded "+loadedBytes+" of "+target._name);

        };
        preloader.onLoadComplete = function(target) {// on load complete
            //trace("finished loading "+target._name);
            sezione1.container_mc["spinner"+target].removeMovieClip();
            new Tween(target, "_alpha", Strong.easeOut, 0, 100, 1, true);

            // thumb behaviours
            target.onRelease = function() {

                callFullImage(this._name);

 };

```
