I have component that functions as a button. It has its own styleName
(menuButton) specified. It has a subcomponent that is a label with its own
styleName (menuButtonLabel) specified.
On rollOver, I set the button to a selected State, using SetStyle to set the
label style:
<mx:State name="selectedState" >
<mx:SetStyle target="{labelHolder}" name="styleName"
value="menuButtonLabelSelected" />
This correctly sets the label's style per the menuButtonLabelSelected css
values.
However, when I return the button to its base state (currentState = "";), The
label styleName does not get reset to it base menuButtonLabel style, but
instead takes on the parent menuButton style.
Any ideas what I am doing wrong, or suggestions to try? Is my theory correct?
Tracy Spratt