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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Properties of individual lines in textfield?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I'm populating a textfield with a set of variables with actionscript - one per row in the field. What I would like to do is to alternate the background color for each row, i.e. row 1=gray, row 2=red, row 3=gray and so on.

I can't seem to find any properties for individual rows/lines in the field, only for the entire textfield.

Any pointers?

Thanx for your help.
/Magnus...
 
well one way you could do it is make the text box use HTML code its one of the properties of it. and then use html to change the color. like instead of:
variable = "hello"

make it:

variable = &quot;<font color=&quot;#0066CC&quot;>hello</font>&quot;

Shenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top