-
Customizing scrollbar colors
Got a scrollbar, I want it to look flat. How the hell do i get the white highlight off of the scroll bar. Here is some of the code attached to my scrollbar:
Code:
this.setStyleProperty("face", 0x999999);
this.setStyleProperty("higlight", 0xff0000);
this.setStyleProperty("shadow", 0x999999
none of these or "highlight3D", nor "darkshadow" allow me to rid the component of the white line that creates the 3D look of the up and down buttons.
Signed,
Frustrated
-
Dont know the actionscript to change the look, so I just edit the component skins.
-
http://odin.prohosting.com/~oldnew/scrollbar1.htm
Two ways to change the aspects (8 in all) of scrollbars.
Global...
myFormat = new FStyleFormat();
myFormat.scrollTrack = 0xFF9900;
myFormat.arrow = 0xFF0000;
myFormat.face = 0x999999;
myFormat.darkshadow = 0xFF0000;
myFormat.shadow = 0x00FF00;
myFormat.highlight = 0x00FFFF;
myFormat.highlight3D = 0xFF00FF;
myFormat.foregroundDisabled = 0xFFFFFF; // for disabled scrollbar only!
// then you can apply it to Components like this
myFormat.addListener(scrollbar2); // add other instances like myFormat.addListener(scrollbar1,scrollbar2,scrollb ar5);
Individual...
scrollbar1.setStyleProperty("arrow", 0x00FFFF);
scrollbar1.setStyleProperty("face", 0x000000);
scrollbar3.setStyleProperty("face", 0xFF0000);