Is it possible to set a custom background color for the input text, instead of the default white?
Thanx
| SitePoint Sponsor |
Is it possible to set a custom background color for the input text, instead of the default white?
Thanx





Are you using Flash MX? If so,
This would set the background color of text field whose instance name is "TextField" to red or FF0000.
Code:TextField.backgroundColor = 0xFF0000;
Yeah, thanks!
But this approach has two disadvantages (well, relative). The first is that you see what you get at run time only and at design time there are annoying white textboxes. The second is that it works in MX only.
I found an unbelievably simple workaround for this which is universal. I just put a borderless input on top of a color folled rectangle. This way I can even play with the borders of the rectangle...
Thank you for stimulating my thinking!
Bookmarks