Color de rollover de etiqueta de chispa

I have a group of spark label components within a VGroup. Is there a way to change the background color to the labels when the user rolls over them? I've tried adding rollOverColor to the VGroup, but it didn't work.

preguntado el 09 de marzo de 12 a las 23:03

1 Respuestas

    <s:Group rollOut="aRect.visible=false"
        <s:Rect height="100%"
                <s:SolidColor color="red"/>
        <s:Label text="This is some label"/>

You could throw the group portion from the code above into it's own MXML and declare a public var text that you bind to the label's text property. Alternatively you could do this based on states, more on that here:

respondido 10 mar '12, 00:03

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.