Style properties

A style property of an MXML tag differs from other properties because it corresponds to an ActionScript style property that you set in ActionScript using the setStyle(stylename, value) method rather than object.property=value notation. The text and fontFamily properties in the following example:

<mx:TextArea id="myText" text="hello world" fontFamily="Tahoma"/>

are equivalent to the following ActionScript code:

// text property:
myText.text= "hello world";

// font style property:
myText.setStyle("fontFamily", "Tahoma");

Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00002146.htm