# Customize UIscrollbar in flash 8

**URL:** <https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763>\
**Category:** flash\
**Created:** [June 30, 2008, 9:30am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763 "2008-06-30T09:30:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 9:30am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/1 "2008-06-30T09:30:53Z")

</div>

Does anyone know if you can customise the colors of the UIScrollbar in Flash 8?

Thanks,

Matt.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 9:52am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/2 "2008-06-30T09:52:45Z")

</div>

erm [gotoandlearn.com](http://gotoandlearn.com) _shrugs_

---

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 10:55am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/3 "2008-06-30T10:55:11Z")

</div>

I am using php to write an actionscript file with values for a photo gallery. So I can get php to write:  
var photo\_border\_color:String = ‘#ffffff’;

Then the swf will grab the .as file and display the gallery with the color values chosen by the user of the php site.

Is it possible to use actionscript to control the color of the scrollbar. I want the php user to be able to enter a hex color, and have the scrollbar that color, so it matches the other colors,

Thanks.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 11:16am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/4 "2008-06-30T11:16:22Z")

</div>

V2 Component Skinning  
Learn how to skin the v2 components found inside of earlier versions of Flash. \<— gotoand [learn.com](http://learn.com)

flash macromedia…  
[http://livedocs.adobe.com/flash/mx2004/main\_7\_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash\_MX\_2004&file=00002833.html](http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002833.html)

ultrashokc  
[http://www.ultrashock.com/tutorials/flashmx2004/skinning.php](http://www.ultrashock.com/tutorials/flashmx2004/skinning.php)

---

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 11:25am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/5 "2008-06-30T11:25:44Z")

</div>

I have already looked at the gotoandlearn. It shows to to skin a component manually good. But it does not show how to use actionscript to dynamically change the color of a component to any hex color, I am not even sure if this is possible. This is what I am asking.

Thanks.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 11:33am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/6 "2008-06-30T11:33:40Z")

</div>

swap the hex in the code for a variable

and tell the variable to be the hex you want 😛

---

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 11:53am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/7 "2008-06-30T11:53:52Z")

</div>

Can you please give me an example of the actionscript. For example for a textarea I can go:  
Mytext.setStyle(“backgroundColor”,“0xFFCC00”); and I can change the background color for the text area. I can easily put a variable in there. i do not know of any code that will change the look of a scrollbar itself, whether it is the scrollbar on a textfield, or a uiscrollbar on a dynamic textfield.

Thanks.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 11:58am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/8 "2008-06-30T11:58:17Z")

</div>

> myHexCode = 0xFFCC00

Mytext.setStyle(“backgroundColor”,myHexCode)

_shrugs_ that might work

…

UI comps that come with flash are basic, you will have to make your own really if you want to achieve what you are attempting

---

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 12:06pm UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/9 "2008-06-30T12:06:49Z")

</div>

"myHexCode = 0xFFCC00  
Mytext.setStyle(“backgroundColor”,myHexCode) "

As I have already pointed out this changes the background color, not the scroll color. I appreciate you are trying to help, but why answer this post if you don’t auctually know how to color the scrollbar?

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 30, 2008, 12:22pm UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/10 "2008-06-30T12:22:26Z")

</div>

do you see anyone answering…

as I say UI is basic noob stuff to get you started, it was never intended for anything futher, it clogs up /slows down your app…

if you can’t find how to do it on macromedia… **its a hint that you can’t**

this is really an animation/coding/video application,

I suggest you find a slider script and use that, you can tweak it and do whatever you want, plus your application will be 5 times smaller

ps: don’t act like you are clever by merely asking

---

<div class="post-metadata">

**Author:** ![matt\_nz](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@matt\_nz](https://forum.kirupa.com/u/matt_nz)\
**Post date:** [June 30, 2008, 10:24pm UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/11 "2008-06-30T22:24:48Z")

</div>

“ps: don’t act like you are clever by merely asking”

There is no acting going on on my side. If your answer to how to color a scrollbar is:  
“myHexCode = 0xFFCC00 Mytext.setStyle(“backgroundColor”,myHexCode) that might work”, When I have already explained that this colors a textarea, not a scrollbar, Then I think acting clever is something you do better.

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [July 1, 2008, 8:40am UTC](https://forum.kirupa.com/t/customize-uiscrollbar-in-flash-8/264763/12 "2008-07-01T08:40:32Z")

</div>

It may appear to you that I am expressing my opinion,

but the fact remains UI are for no-coding people, they are badly coded and painfully basic

arguing with me is wasting your time,

which could be better spent looking at and downloading one of the billion AS scroller examples out there that are free and work

…

recently I made an app, but I didn’t use the UI components, I used AS and movieclips

…

**stop being a noob**
