# °°° help with scrolling imagebar °°°

**URL:** <https://forum.kirupa.com/t/help-with-scrolling-imagebar/31394>\
**Category:** flash\
**Created:** [September 22, 2003, 1:57pm UTC](https://forum.kirupa.com/t/help-with-scrolling-imagebar/31394 "2003-09-22T13:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lampe](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lampe](https://forum.kirupa.com/u/lampe)\
**Post date:** [September 22, 2003, 1:57pm UTC](https://forum.kirupa.com/t/help-with-scrolling-imagebar/31394/1 "2003-09-22T13:57:58Z")

</div>

hey there,

i made this tutorial where a bar of images is looping from left to right. When i enter the image with my mouse-pointer, the image swoops left (mouse-move to the left) or to the right (mouse-move to the right). But the problem is this: if i hold the mouse-pointer still at the same spot, the image should stop moving. Instead, it continues to loop. How can I solve this? (the image is called ‘scrollclip’)

[AS]onClipEvent (mouseMove) {  
xmousepos1 = \_xmouse;  
ymousepos1 = \_ymouse;  
if (xmousepos1\>xmousepos2 && ymousepos1\>-150 && ymousepos1\<150) {  
\_root.scrollclip.nextFrame();  
}  
if (xmousepos1\<xmousepos2 && ymousepos1\>-150 && ymousepos1\<150) {  
\_root.scrollclip.prevFrame();  
}  
if (ymousepos1\<-98 || ymousepos1\>-33) {  
play();  
}  
xmousepos2 = \_xmouse;  
ymousepos2 = \_ymouse;  
}  
[/AS]

it should be changed in the last ‘if-part’

I tried this: if xmouse1=xmouse2, then stop, else, play  
but it didn’t work.

Any help is welcome!

lampe\*\*(MX)\*\*
