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!

QUICK FIX COMPONENT COLORS

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
Im trying to change the background on a scrollpane, the scroll pane has a instance name of pane and i am using this in the first frame

pane.formStyleFormat.background = "0x000000";
but its not working .. whats wrong?
 
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(myPane); //instance name
formStyleFormat.applyChanges();

That's an example on how to change a scrollpane's colours.
Put this script on the timeline on which you have your scrollpane (most probably the main timeline, I suppose), give your scrollpane the instance name mypane (or change the name in the code) and it should work out.

regards

tektips.gif
 
Background and border... 3 ways:

If your movie background was white for instance...

//myColor = new Color(_level0.myscrollpane.boundingBox_mc);
//myColor.setRGB(0xFFFFFF);

Or...

_level0.myscrollpane.boundingBox_mc._visible = false;

Or... For a transparency effect.

//level0.myscrollpane.boundingBox_mc._alpha = 50;



Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top