As a work-around, you can always just create another state that
explicitely sets the styleName back to the original.

-TH

--- In [email protected], "valdhor" <valdhorli...@...> wrote:
>
> Don't quote me on this, but that rings a bell. I do believe that is in
the documentation somewhere.
>
> Your best bet may be to listen for the change event and then set the
style in the event handler.
>
> --- In [email protected], "Tracy" tracy@ wrote:
> >
> > 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
> >
>



Reply via email to