Why do I have to use class selector and not a type selector?

        <mx:Style>
                Label {
                        fontSize: 16px;
                        fontWeight: bold;
                }
                
                .test {
                        fontSize: 16px;
                        fontWeight: bold;       
                }
        </mx:Style>
....
        <mx:Label text="Test" styleName="test"/>

If I remove the styleName property telling the label to use the .test 
class, the label it NOT styled and I can not see why.  I don't want to 
have to put classes on all my labels, I want them to be defined as a type.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4365
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to