# Using setStyle to change UIscrollbar track color

**URL:** <https://forum.kirupa.com/t/using-setstyle-to-change-uiscrollbar-track-color/190097>\
**Category:** flash\
**Created:** [June 8, 2006, 4:19pm UTC](https://forum.kirupa.com/t/using-setstyle-to-change-uiscrollbar-track-color/190097 "2006-06-08T16:19:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [June 8, 2006, 4:19pm UTC](https://forum.kirupa.com/t/using-setstyle-to-change-uiscrollbar-track-color/190097/1 "2006-06-08T16:19:14Z")

</div>

I have a dynamic text field on a transparent windowless SWF and the white scrollbar track might look better in a more harmonious color. I think I might be close, here is what I have as actionscript for the scrollbar instance:

onClipEvent (load) {  
UIScrollBar  
starters.setStyle(“scrollTrackColor”,“0x200000”);  
starters.addEventListener()  
}

To see the scrollbar choose Soups & Starters. I’m thinking a beigeier color would be nice.

[http://www.cincinnati.com/dining/ronsroost/index3.html](http://www.cincinnati.com/dining/ronsroost/index3.html)
