# If/then question

**URL:** https://forum.kirupa.com/t/if-then-question/204934
**Category:** flash
**Created:** [October 24, 2006, 7:12pm UTC](https://forum.kirupa.com/t/if-then-question/204934 "2006-10-24T19:12:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lenfest](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@lenfest](https://forum.kirupa.com/u/lenfest)
#### Post date: [October 24, 2006, 7:12pm UTC](https://forum.kirupa.com/t/if-then-question/204934/1 "2006-10-24T19:12:28Z")

</div>

I am trying limit the scroll length of a movie clip. I’m sure it’s a simple if/then statement, but I am lost. Does anyone know how to limit the length of the scroll depending on the width of the clip?

on(press, release, keyPress “\<left\>”)  
{  
thumbnails.\_x += 30;  
}

Any help would be greatly appreciated, thanks.

Adam

---

<div class="post-metadata">

### Author: ![anon43637241](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon43637241](https://forum.kirupa.com/u/anon43637241)
#### Post date: [October 24, 2006, 7:16pm UTC](https://forum.kirupa.com/t/if-then-question/204934/2 "2006-10-24T19:16:35Z")

</div>

I think this belongs in the Flash 8 forum 😉

Welcome to the forums though!
