You are confronted with a difference in properties and styles (sometimes called style properties that confuse you). For UIComponent color usually a style.
In mxml, both are initialized as XML attributes; in ActionScript, properties are direct member variables, and styles are considered by the StyleManager .
In short, you set styles by calling UIComponent.setStyle :
label.setStyle("color", 0xFFFFFF);
source share