Using CSS, how would I reference the Button component? FWIW, I'm using Flex 3.x SDK.
<mx:HBox id="myHBox" styleName="myHBox">
<mx:Button label="Test"/>
</mx:HBox>
Using CSS, how would I reference the Button component? FWIW, I'm using Flex 3.x SDK.
<mx:HBox id="myHBox" styleName="myHBox">
<mx:Button label="Test"/>
</mx:HBox>
Apparently, this (amongst other things) is a limitation in Flex 3.x. Fortunately, it works as one would imagine in Flex 4:
In flex 3.x you cannot access it via css without using a type selector like so:
Button{
someProp:someVal;
}
but that would apply to every instance of the button class.
Flex 4.x has a better implementation of css selectors and you could access it via its parent like so:
#myHbox s|Button{
someProp:someVal;
}