# Little scrollbar question

**URL:** <https://forum.kirupa.com/t/little-scrollbar-question/8737>\
**Category:** Uncategorized\
**Created:** [November 27, 2002, 11:14am UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737 "2002-11-27T11:14:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [November 27, 2002, 11:14am UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/1 "2002-11-27T11:14:39Z")

</div>

this is the code i’m using now for my up scroll bar:

on (press, release, keyPress “\<Up\>”) {  
currentScroll = scrollableText.scroll;  
if (Number(currentScroll)\>1) {  
scrollableText.scroll = currentScroll-1;  
}  
}

and i was wondering if you can make it so if you hold down the mouse, it will continue to scroll down. Will you be able to change the scroll speed? thx

---

<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:** [November 27, 2002, 8:48pm UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/2 "2002-11-27T20:48:58Z")

</div>

the best bet would to make this scroll bar encapelated into an MC…

just turn your buttons etc. into 1 movie clip. then you could set a variable like

isScrolling = true; (or false if false);

and have code in the onClipEvent of that MovieClip to make it move up or down etc…

hope this helps some =)

---

<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:** [November 27, 2002, 8:51pm UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/3 "2002-11-27T20:51:17Z")

</div>

If you use \<B\>MX\</B\> You can try something like this on a movie clip…

```auto
on (press, keyPress "<Up>") {
	currentScroll = scrollableText.scroll;
	this.onEnterFrame = function() {
		if (Number(currentScroll)>1) {
			scrollableText.scroll = currentScroll-1;
		}
	};
}

```

Untested, but it’s worth a try.

---

<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:** [November 27, 2002, 9:08pm UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/4 "2002-11-27T21:08:03Z")

</div>

Yes what he said. lol

---

<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:** [November 27, 2002, 9:10pm UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/5 "2002-11-27T21:10:02Z")

</div>

Lol… you never know, I am too lazy to set up the situation myself, so I don’t know if the code works or not…LOL :evil::beam:

---

<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:** [November 28, 2002, 11:15am UTC](https://forum.kirupa.com/t/little-scrollbar-question/8737/6 "2002-11-28T11:15:19Z")

</div>

argh! it doesn’t work for some reason! oh well, i guess i’ll wait till ig et a book and i’ll figure it myself…thx for the help anywayz 🙂
