# Need help stopping a scrolling movie

**URL:** https://forum.kirupa.com/t/need-help-stopping-a-scrolling-movie/33828
**Category:** flash
**Created:** [October 23, 2003, 11:57pm UTC](https://forum.kirupa.com/t/need-help-stopping-a-scrolling-movie/33828 "2003-10-23T23:57:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rickard](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rickard](https://forum.kirupa.com/u/Rickard)
#### Post date: [October 23, 2003, 11:57pm UTC](https://forum.kirupa.com/t/need-help-stopping-a-scrolling-movie/33828/1 "2003-10-23T23:57:46Z")

</div>

I am trying to dupicate the effect at the bottom of the [bacardi.com](http://bacardi.com) site.

There is a scrolling movie that stops once you mouse over it

I have spent some time messing with the f5\_scrollbar\_animation.fla movie from this site but can’t seem to find the right spot for handlers. What I would like the movie to do is scroll on it’s own without taking the mouse movement into account (easy to do just remove the [\_root.xmouse] from

[this.\_x += (\_root.\_xmouse - 320)\*percent\_increment;] and it just scrolls. What I can’t seem to do is figure out how to get it to stop scrolling on a mouse click.

I have tried using hte [onClipEvent(mouseDown)] event but it isn’t working. This might be due the fact I am starting the scrolling with a onClipEvent(enterFrame) but I am not sure.

Could anyone point me to a tutorial that might help or make some suggestions on how to get the f5\_scrollbar\_animation.fla movie to scroll on it’s own and stop with a mouse down (really want a mouse over like the [bacardi.com](http://bacardi.com) site).

Thanks and sorry if that is horrible unclear 🙂

Peace,  
Rickard

---

<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: [October 24, 2003, 2:15am UTC](https://forum.kirupa.com/t/need-help-stopping-a-scrolling-movie/33828/2 "2003-10-24T02:15:18Z")

</div>

```auto

this._x -= !hitTest(_parent._xmouse, _parent._ymouse, true)*325*percent_incriment

```

(I learned this from Kode earlier today :P)

---

<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: [October 24, 2003, 3:26pm UTC](https://forum.kirupa.com/t/need-help-stopping-a-scrolling-movie/33828/3 "2003-10-24T15:26:26Z")

</div>

While I understand the script you posted I am confused as where to use it.

I am using the [onClipEvent(enterFrame)] to start my scrolling moving it seems to always scroll. using your script instead kills the scroll. If you script was intended to be put somewhere else instead of substituted for the [this.x] script already in the movie then I don’t know where it should go.

Thanks.

Peace,  
Rickard
