# \[FX2004\] Scrolling Movieclip

**URL:** https://forum.kirupa.com/t/fx2004-scrolling-movieclip/151205
**Category:** flash
**Created:** [June 14, 2005, 2:49am UTC](https://forum.kirupa.com/t/fx2004-scrolling-movieclip/151205 "2005-06-14T02:49:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imported\_Musoka](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imported_musoka/32/1328_2.png) [@imported\_Musoka](https://forum.kirupa.com/u/imported_Musoka)
#### Post date: [June 14, 2005, 2:49am UTC](https://forum.kirupa.com/t/fx2004-scrolling-movieclip/151205/1 "2005-06-14T02:49:17Z")

</div>

I have a movieclip(artThing) on my bottom layer, with a mask on the next layer(masking the movieclip). And on the top layer the scroll buttons.

The scroll buttons increment the Y inside a “if” statement so it stops scrolling after a certain #

Problem is, it isnt stopping and it just keeps scrolling. The following actionscript is for the Up Button.

```auto
onClipEvent (enterFrame){
        if (textScroll){
			musoY = _parent.artThing._y;
			endNum = -416;
			if(musoY == endNum) {
				textScroll = false;
			} else {
                _parent.artThing._y -= 16; // or +=1;
			}
        }
}

```

It scrolls fine, but it keeps going and going.

[http://musoka.ax86.net/xanus/portfolio.swf](http://musoka.ax86.net/xanus/portfolio.swf)
