# Making button stop working when group of images is on last row

**URL:** <https://forum.kirupa.com/t/making-button-stop-working-when-group-of-images-is-on-last-row/181702>\
**Category:** Uncategorized\
**Created:** [March 12, 2006, 5:08am UTC](https://forum.kirupa.com/t/making-button-stop-working-when-group-of-images-is-on-last-row/181702 "2006-03-12T05:08:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samurai](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Samurai](https://forum.kirupa.com/u/Samurai)\
**Post date:** [March 12, 2006, 5:08am UTC](https://forum.kirupa.com/t/making-button-stop-working-when-group-of-images-is-on-last-row/181702/1 "2006-03-12T05:08:26Z")

</div>

Hey all,

```
  It's been a while since I've last posted, but I read a lot of others' posts, and try to keep up to date.

  My question is this: I have a group of images that are loaded up using xml into a movieclip. The movieclip is masked. I have 2 buttons, that scrolls the grouping either up or down. I would like to make these buttons inactive when the grouping of images is on it's last row, meaning when there is only one row of images shown on the screen/mask.   

 I have tried using hitArea, but I wasn't successful. This would be easy for me to achieve if I wasn't trying to make it a bit dynamic. Basically, someone would be updating the xml file with more nodes/images and the swf would update the list of images, thus making it difficult to hardcode when the list should stop scrolling.

```

Thank you to anyone and everyone who is kind enough to help me with this. I have spent a couple of days on the forums and on other sites, as well as trying to figure it out using my own 2 cents, but to no avail. If there is a tutorial that explains how to do this functionality exactly that I have missed I appologize.

Thanks again, keep up the great work people 🙂
