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!

How to use HTML tags in actionscript? 1

Status
Not open for further replies.

ColdFusionKing

Programmer
Dec 5, 2002
145
GB
Hi Guys,

I want to use use the html font tag (<font>) in action script. Here is my code.

labelName.text = &quot;Service:&quot; + result.servicestatus;

I want to change the font color for the text &quot;Service:&quot; to black. How can I do this in actionscrpt?

I'll really appreciate your help
Regards,
Allan
 
Make sure the labelName textbox is set to html formatting then use this code:

labelName.htmlText=&quot;<font color='#000000'>Service:</font>&quot;+result.serviceStatus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top