Mega Code Archive

 
Categories / Flex / Style
 

Selector precedence between style name and style name with namespace

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Style>     @namespace mx "http://www.adobe.com/2006/mxml";     .myclass {          color: Red;     }     mx|Button {          fontSize: 10pt;          color: Yellow;     }     </mx:Style>     <mx:VBox width="500" height="200">          <mx:Button styleName="myclass" label="I am red"/>          <mx:Button label="I am yellow"/>     </mx:VBox> </mx:Application>