Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing The Scrollbar Components Color? 1

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi,

I've actually checked out the "help" file on how to change the color of a scrollbar...or at least I thought I did. It went into FStyles and about eight arrow clicks later, I still didn't understand it. Changing the color of the scrollbar shouldn't be that tedious...should it? Does anyone know of a simple way of doing it?

Thanks a million,
DanH
 
there are 3 ways really but you might find this the easiest.
just add this to the frame actions and change to suit

formStyleFormat = new FStyleFormat;

formStyleFormat.scrollTrack = "0x123456";
formStyleFormat.highlight = "0x000000";
formStyleFormat.highlight3D = "0x000000";
formStyleFormat.arrow = "0xffffff";
formStyleFormat.face = "0x003366";
formStyleFormat.background = "0x123456";
formStyleFormat.shadow = "0x000000";
formStyleFormat.darkshadow = "0x000000";
formStyleFormat.addListener(myscrollBar);
formStyleFormat.applyChanges();

with myscrollbar the instance name of the scrollbar
 
When you say "frame actions" does that mean I go into the actions palette, click Flash UI Components, click FScrollBar and then paste in the above code while viewing it in expert mode?

Actually, I tried just pasting it to see if I would get any changes, however upon testing it, I got the same look. I guess I'm not really sure on how to implement it.

 
the frame that the scrollbar is will have a number...firts frame 1 and so on

right click in there and copy and paste the code. you must be in expert mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top