Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Changing text color in ActionScript

Avatar

Level 2

Hello,

      I have a text control in my application and I want to change the text color to red whenever an error occurs. I googled around but no help.

Any help would be appreciated.

Thanks,

Bharani

1 Reply

Avatar

Former Community Member

var txt:Text = new Text();

txt.setStyle("color", "0xFF0000");

The setStyle() call is how you set style properties in ActionScript.

If this post answers your question or helps, please mark it as such.