# Need help with a Vertical Scroll Loop

**URL:** <https://forum.kirupa.com/t/need-help-with-a-vertical-scroll-loop/295283>\
**Category:** flash\
**Created:** [August 27, 2009, 4:39pm UTC](https://forum.kirupa.com/t/need-help-with-a-vertical-scroll-loop/295283 "2009-08-27T16:39:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcartcbre](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@kcartcbre](https://forum.kirupa.com/u/kcartcbre)\
**Post date:** [August 27, 2009, 4:39pm UTC](https://forum.kirupa.com/t/need-help-with-a-vertical-scroll-loop/295283/1 "2009-08-27T16:39:33Z")

</div>

I have a list of locations that I am scrolling vertically in my movie with a mask over it (kind of like movie credits). My problem is when I try to loop the graphic it isn’t smooth. I am using the following script:

onClipEvent (enterFrame) {  
if (\_root.\_ymouse \< 768) {  
this.\_y --;  
}  
if (this.\_y \< -149) {  
this.\_y = 355;  
}  
}

It does work but, like I said it isn’t a smooth motion. I think I would need two of the same graphic and when one gets to a certain point on the stage the duplicate graphic should begin; then the first graphic should reposition itself back to the beginning and so on. If you have any suggestions I would greatly appreciate your help.  
Thanks
