Hi There is a pseudo selector test on mx:Button with custom states "tests\Managers\StyleManager\AdvancedCSS\pseudoSelectors" and it looks for me there's a bug in the sdk. If somebody can confirm that ..
The same test for spark button works seamless. codesnippet <?xml version="1.0"?> <!-- styles/PseudoSelectorExample.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comp="comp.*"> <mx:Style> @namespace mx "library://ns.adobe.com/flex/mx"; mx|Button:SubmitState { cornerRadius: 15; } </mx:Style> <comp:TestMxButton id="button" label="Click Me 2" x="10" y="65" /> </mx:Application> <?xml version="1.0" encoding="utf-8"?> <!-- comp/TestMxButton.mxml --> <mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" width="120" height="50" currentState="SubmitState"> <mx:states> <mx:State name="SubmitState" > <mx:SetProperty target="{this}" name="label" value="submit" /> </mx:State> <mx:State name="ClearState" > <mx:SetProperty target="{this}" name="label" value="clear" /> </mx:State> </mx:states> </mx:Button> I'll continue with "tests\Managers\StyleManager\AdvancedCSS\classSelectors" cyrill