# How to create a custom TEXT scrollbar

**URL:** <https://forum.kirupa.com/t/how-to-create-a-custom-text-scrollbar/216922>\
**Category:** Uncategorized\
**Created:** [February 21, 2007, 6:54pm UTC](https://forum.kirupa.com/t/how-to-create-a-custom-text-scrollbar/216922 "2007-02-21T18:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael1](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@michael1](https://forum.kirupa.com/u/michael1)\
**Post date:** [February 21, 2007, 6:54pm UTC](https://forum.kirupa.com/t/how-to-create-a-custom-text-scrollbar/216922/1 "2007-02-21T18:54:36Z")

</div>

Hey guys!

I have a dynamic text box that grabs text externally. No biggie, I even added a custom scroller to it. However I want to create more than a triangle at the top and bottom of the scroller. I’d like to create a custom scrollbar, so the user can click and drag the bar as well as hitting the arrows.

[http://www.kirupa.com/developer/flash8/scrollbar.htm](http://www.kirupa.com/developer/flash8/scrollbar.htm) // in this tutorial kirupa has us building a custom scrollbar for a masked mc. It’s works great, i even have the scrollbar working, however I can’t get it to link correctly to my dynamic text box. I don’t know how to properly change the actionscript to make it work.

My dynamic text box has an instance name of news\_txt I tried plugging that in-place of the contentMain MC or contentMask MC that this tutorial uses. I also tried changing various other things, but I cannot get this to scroll. Besides changing the names of some instances, and making sure I followed the tutorial, it isn’t that hard, however I don’t know how to edit the actionscript.

If anybody knows how to change it, or another way or creating a custom scrollbar to go along with my arrows 😃 that’d be swell.

[Kirupa ScrollBar Actionscript](http://www.kirupa.com/developer/flash8/code/scrollbar.htm)

P.S. … please don’t tell me to just use the component scrollbar, because it’s just boring and unoriginal.  
[](http://www.kirupa.com/developer/flash8/code/scrollbar.htm)
