# Another Question about XML Thumbnails and Tweening

**URL:** <https://forum.kirupa.com/t/another-question-about-xml-thumbnails-and-tweening/246562>\
**Category:** flash\
**Created:** [December 12, 2007, 10:21am UTC](https://forum.kirupa.com/t/another-question-about-xml-thumbnails-and-tweening/246562 "2007-12-12T10:21:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ripagiga06](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@ripagiga06](https://forum.kirupa.com/u/ripagiga06)\
**Post date:** [December 12, 2007, 10:21am UTC](https://forum.kirupa.com/t/another-question-about-xml-thumbnails-and-tweening/246562/1 "2007-12-12T10:21:46Z")

</div>

created the gallery and made thumbnails vertical everything works fine except my tween for the thumbnails.  
i need help disabling the hit\_up and hit\_down buttons for the amount of time the tween is going on so someone can’t click on the button till the tween is finished.

```auto

hit_up.onRelease = function(){
    if(thumbnail_mc._y > 0 ){
        //do nothing
    }else{
        y_pos = thumbnail_mc._y;
        new Tween(thumbnail_mc, "_y", Strong.easeOut, y_pos, y_pos+60, 1, true);
    };
}

hit_down.onRelease = function(){
    if(thumbnail_mc._y <= (total-7)*-60){
        //do nothing
    }else{
        y_pos = thumbnail_mc._y;
        new Tween(thumbnail_mc, "_y", Strong.easeOut, y_pos, y_pos-60, 1, true);
    }
}

```
