Applying Styles Inline
The simplest way to apply a style is to set a style directly on an instance of a visual component. Using MXML, the syntax is the exact same as setting a property (see Listing 4-2).
Listing 4-2. Specifying the color style on a Button component inline with MXML
<mx:Button color="0xFF0000" label="Red" />
Style properties can be bound to variables, making it possible to create interactive or dynamic interfaces. For example, the fontSize property of a TextArea component could be bound to the value property of a NumericStepper. Interacting with the NumericStepper would affect the size of the text in the TextArea.