# Want Up & Down buttons to scroll graphic movie clip behind mask

**URL:** <https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 5:44pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418 "2004-06-17T17:44:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wownflutter](https://avatars.discourse-cdn.com/v4/letter/w/b5e925/32.png) [@wownflutter](https://forum.kirupa.com/u/wownflutter)\
**Post date:** [June 17, 2004, 5:44pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/1 "2004-06-17T17:44:43Z")

</div>

As the title suggests, I am trying to simply scroll an mc (not dynamic text) under a mask via an up and down button.

Have it all set up except for the button actions…  
could use some help – what actions should go in the up and down buttons

Thx

---

<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:** [June 17, 2004, 5:47pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/2 "2004-06-17T17:47:30Z")

</div>

There are like a zillion ways to do this, perhaps you could post your .fla here so we can help you out.

---

<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:** [June 17, 2004, 7:56pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/3 "2004-06-17T19:56:24Z")

</div>

Setting up your movie:  
Label the thing which should scroll as “list”  
Have it and the thing its masking in a movie clip.  
Give the first frame actions:

```auto
scrollspace=0

```

Give the down button these actions

```auto
on (press, release) {
	if (scrollspace<=10) {
//Change that to ten to fit in the thing which should scroll
		_root.scroller.list._y-=10
		scrollspace+=1
}
}

```

And the up button…

```auto
on (press, release) {
if (scrollspace>=1) {
_root.scroller.list._y+=10
scrollspace-=1
}
}

```

I think thats what you’re looking for :bored:

---

<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:** [June 17, 2004, 7:59pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/4 "2004-06-17T19:59:27Z")

</div>

> [@Architect](#):
>
> There are like a zillion ways to do this, perhaps you could post your .fla here so we can help you out.

Sounds like a plan, thanks…

[scrolltestfla.zip](http://tsunami.he.net/~kdk545/scrolltest.zip)

:hair:

---

<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:** [June 17, 2004, 8:24pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/5 "2004-06-17T20:24:23Z")

</div>

I gave you the code!

---

<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:** [June 17, 2004, 8:27pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/6 "2004-06-17T20:27:55Z")

</div>

Hey thanks much denacioust

I really don’t know what happened cause when I posted I didnt see your awesome post…

Thanks – much appreciated!

---

<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:** [June 17, 2004, 8:30pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/7 "2004-06-17T20:30:45Z")

</div>

No prob

---

<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:** [June 17, 2004, 8:39pm UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/8 "2004-06-17T20:39:46Z")

</div>

I use the scrollpane that comes in the componets panel…  
first create the movie clip be sure to include a background so you can can control the size of it in the scrollpane window…name the movie clip whatever then export it for action scripting so it can link to the scrollpane…next drop a scrollpane on the stage set its properities …in scroll content put the name of the "movie clip "in the instance also put the name of the “movie clip”…  
test it… if it works you can then go to the scrollpane assets in the library and edit the colors of the scrollpane like the thumbnail and the arrors etc etc

[Here is an example](http://www.mgamerz.com/FLASH/preload_webpage.html)

> [@wownflutter](#):
>
> As the title suggests, I am trying to simply scroll an mc (not dynamic text) under a mask via an up and down button.
> 
> Have it all set up except for the button actions…  
> could use some help – what actions should go in the up and down buttons
> 
> Thx

---

<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:** [June 18, 2004, 5:41am UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/9 "2004-06-18T05:41:41Z")

</div>

> [@Magnum\_357](#):
>
> I use the scrollpane that comes in the componets panel…  
> first create the movie clip be sure to include a background so you can can control the size of it in the scrollpane window…name the movie clip whatever then export it for action scripting so it can link to the scrollpane…next drop a scrollpane on the stage set its properities …in scroll content put the name of the "movie clip "in the instance also put the name of the “movie clip”…  
> test it… if it works you can then go to the scrollpane assets in the library and edit the colors of the scrollpane like the thumbnail and the arrors etc etc
> 
> [Here is an example](http://www.mgamerz.com/FLASH/preload_webpage.html)

The first “buttons” method what having frame interference. Totally not smooth. Like some elasticity problem.

I tried the method above with the mx pro scrollpane component and my mc never shows up even with a proper path entered. And, yup, it is set for export via actionscript. But no luck… :vamp:

---

<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:** [June 18, 2004, 6:09am UTC](https://forum.kirupa.com/t/want-up-down-buttons-to-scroll-graphic-movie-clip-behind-mask/113418/10 "2004-06-18T06:09:35Z")

</div>

well, found out what was wrong with the component.  
I was publishing in AS1.0

You have to publish in AS2.0 for that to work.

I think my use of Penners functions is affecting the Buttons version mentioned above…could this be so?
