Extensible style properties
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
@namespace mx "http://www.adobe.com/2006/mxml";
mx|Panel {
fontFamily: Times, "_serif";
fontSize: 24;
}
</mx:Style>
<mx:Panel title="My Panel">
<mx:Button id="button1" label="Button 1" />
<mx:Button id="button2" label="Button 2" fontFamily="Arial" fontSize="12" />
<mx:TextArea text="this is a test." width="425" height="400" />
</mx:Panel>
</mx:Application>
Related examples in the same category