# Should be simple...but

**URL:** <https://forum.kirupa.com/t/should-be-simple-but/6702>\
**Category:** flash\
**Created:** [October 14, 2002, 4:10pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702 "2002-10-14T16:10:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazyanimator](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@crazyanimator](https://forum.kirupa.com/u/crazyanimator)\
**Post date:** [October 14, 2002, 4:10pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/1 "2002-10-14T16:10:03Z")

</div>

Ok folks, need a hand here.

I am trying to create a scrolling text section for a cd-rom I am creating. I have created buttons for the scroll up and scroll down and so far all I am able to get is a click click click to scroll up and down 1 line at a time. Would prefer to make a loop so when you hold down the button it “scrolls” until you release. Have had no luck in setting variables on press and release. Has anyone had any experience in this? Something so simple has me at wits end.

Why oh why cant flash have a button.isstilldown like director argh!

---

<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 14, 2002, 4:11pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/2 "2002-10-14T16:11:44Z")

</div>

What version of Flash are you using?

---

<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 14, 2002, 4:13pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/3 "2002-10-14T16:13:26Z")

</div>

Using MX sorry should have said that earlier

---

<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 14, 2002, 4:17pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/4 "2002-10-14T16:17:41Z")

</div>

Well if you are using MX, you can apply button event to a movie clip.

So just a hunch, never tried it out, and I don’t know if it is “optimized”, but try this…

```auto
onClipEvent (enterFrame) {
 on (press) {
   //insert code here
}
on (release) {
  //insert code here
}
}

```

\<B\>EDIT: Just tested that, it doesn’t work\</B\>

---

<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 14, 2002, 4:24pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/5 "2002-10-14T16:24:38Z")

</div>

Ok, now try this one…

```auto
on (press) {
	this.onEnterFrame = function() {
		//insert actions here
	};
}
on (release) {
	//insert actions here
}

```

No errors, and I tested it with a trace function and it seemed to work.

---

<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 14, 2002, 4:34pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/6 "2002-10-14T16:34:07Z")

</div>

are the man!

That works perfect. If you are ever in the Tampa, FL area stop by I owe you a beer for sure.  
🙂

---

<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 14, 2002, 4:38pm UTC](https://forum.kirupa.com/t/should-be-simple-but/6702/7 "2002-10-14T16:38:07Z")

</div>

Haha, awesome. Well actually I am not old enough to legally drink yet (18), but by the time I ever get a chance to go to Tampa, FL, I am sure I will be 🙂
