Color

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

Set the text color.


Value

The color style accepts a hexadecimal color values as well as color names. The default value is #000000 or black.

color: #000000;

This style is cascading.


Remarks

TextField also supports a font tag that supports color. See the Flash reference for TextFormat.htmlText for more details.


Example

Here are two text elements with the same font color, one with a color name and one with a hex value:

<text style="font-family: Swift LT Std; font-size: 20px; color: #ff5100;">this color uses a hexadecimal color value</text>
<text style="font-family: Swift LT Std; font-size: 20px; color: orangered;">this color uses a string color value</text>


See Also


Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player