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!

Can you change the texbox component color? 2

Status
Not open for further replies.

spook007

Programmer
May 22, 2002
259
US
I was just wondering if there was an action script that would allow me to change the background color of the textbox component. I know you can change the color of the font, but it would be nice to change the color of the box itself. Please let me know if anyone has ever heard of this. Thanks.
 
sure...give it an instance name...mybox eg

then main timeline

mybox.background = true;
mybox.backgroundColor = "0x0000FF";

you can do the same for border
 
Code:
_level0.my_textfield.backgroundColor = "0x00ccff";

Regards,

cubalibre2.gif
 
if using oldnewbie dont forget to add

_level0.my_textfield.background = true;

otherwise it wont work.
 
Ok! My turn...

What Bill posted is not necessarily true. If the textfield has a border, no need to set the background to true, it will work!


Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top