# Movie Scroller Script question

**URL:** <https://forum.kirupa.com/t/movie-scroller-script-question/102136>\
**Category:** Uncategorized\
**Created:** [February 20, 2004, 2:13am UTC](https://forum.kirupa.com/t/movie-scroller-script-question/102136 "2004-02-20T02:13:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![volcomp](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@volcomp](https://forum.kirupa.com/u/volcomp)\
**Post date:** [February 20, 2004, 2:13am UTC](https://forum.kirupa.com/t/movie-scroller-script-question/102136/1 "2004-02-20T02:13:43Z")

</div>

Here’s whats up… I want to make a movie object move up & down when I click on the respective buttons. Now I can do this, thats easy… but what I want is when I hold down on the buttons that it moves on its own? And I don’t have to go “_clicky_ _clicky_ _clicky_ _clicky_” (thats the sound your mouse makes) To move the object up and down. Is this even possible? (enter newbie joke here)… Heres the code I got:

on (press, release, keyPress “\<Up\>”)  
{  
\_root.block.\_y = \_root.block.\_y + 4;  
}

Now the other thing I want to do is have it stop at a certain height. Both at the top and the bottom of the screen. The idea being that someone can’t scroll the object off the screen

Any code suggestions? online tutorials? new career move? Appreciate any advice!

Thanks  
BRAD

That reminds me… If anybody has some other good tutourial sites, I’d be interesed to know!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2004, 3:25am UTC](https://forum.kirupa.com/t/movie-scroller-script-question/102136/2 "2004-02-20T03:25:56Z")

</div>

maybe something like this

[AS]  
on (press, release, keyPress “\<Up\>”)  
{if(\_root.block.\_y \<= Stage.height-4){  
\_root.block.\_y = \_root.block.\_y + 4;  
}  
[/AS]
