Log in

View Full Version : Changing color to a scrollbar component in flash



Rockonmetal
10-31-2007, 08:24 PM
I want to change the color of the UI Scrollbar in the flash components to a grayish color. I looked through the help tutorial which is quite general and doesn't give the "info" i'm usually looking for...
Heres what I want to do...
I want to make the scrollbar have a color scheme like this:
Background or Scrollbar Color: #4e4e4e, or #444444
Arrow Color: White
Arrow Color-hover: CCCCCC
I don't know what else I can do... I haven't searched for tutorials on this, I just thought i would ask DD because there have been a bunch of flash users recently come here and answer/ask questions...

Thanks!

*Mods*
I thought this title was a bit long, let me know next time if I should shorten it...

Medyman
11-01-2007, 04:00 AM
Look at the flash Help files

Rockonmetal
11-01-2007, 07:24 PM
I looked through the help tutorial which is quite general and doesn't give the "info" i'm usually looking for...

To me the help files are the tutorials and I have looked through them... it is not simple enough for me...

BLiZZaRD
11-02-2007, 02:17 AM
it's all in the actionscript.



componentInstance.setStyle(propertyName, value)


if you gave your scrollbar an instance name of "srollie" it would look something like this:



scrollie.setStyle("scrollTrack", 0x444444);


for a complete list of editable scrollBar UI items see HERE (http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002493.html)

You can also set global themes and things too, but thats more advanced.

Rockonmetal
11-02-2007, 09:56 PM
Thanks Blizzard... that helps alot!

Rockonmetal
11-04-2007, 09:53 PM
Hey, it doesn't seem to be working...

Here is the action script I put in:


onClipEvent (load) {
scrollie.setStyle("scrollTrack",0x4e4e4e);
}
I put in that, and it doesn't seem to have any change...
Maybe my code i entered in is wrong...
I got the flash file with the external txt file, swf, and fla file in a zip... thanks to anyone who helps... maybe I need to activate it or something, but yet again thats another thing I have absolutely no idea how to do...