# MX2004 help: pausing a movieclip that's moving via actionscript

**URL:** https://forum.kirupa.com/t/mx2004-help-pausing-a-movieclip-thats-moving-via-actionscript/121835
**Category:** Uncategorized
**Created:** [September 7, 2004, 9:01pm UTC](https://forum.kirupa.com/t/mx2004-help-pausing-a-movieclip-thats-moving-via-actionscript/121835 "2004-09-07T21:01:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DavidCastillo](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@DavidCastillo](https://forum.kirupa.com/u/DavidCastillo)
#### Post date: [September 7, 2004, 9:01pm UTC](https://forum.kirupa.com/t/mx2004-help-pausing-a-movieclip-thats-moving-via-actionscript/121835/1 "2004-09-07T21:01:58Z")

</div>

stupid question, I know, but for some reason I can’t get it to work right. any help is appreciated.

here’s what I have going on so far–I have a movieclip that’s acting as a continuously scrolling text field, and want it to stop scrolling onMouseDown.

here’s my code right now:

```auto
onClipEvent (enterFrame) {
	location = this._y;
	var i;
	i = -1;
	if (this._y<-700) {
		this._y = 900;
	}
	else {
		this._y = location+i++;
	}
}

```
