Is just the forums, or do you have an extra space in there?

On 4/25/12 9:37 AM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






I have a label which I need to change the font color on various states.  
Originally I had the code as below with no CSS:

<s:Label text="×" top="1" width="100%" color=”#202020” color.over=”#a12100” 
color.down=”#a12100” fontSize=”24” textAlign=”center” />

I’m trying to move everything into a CSS and have the syntax as follows, but 
the state ones do not seem to get triggered.  Why?

<s:Label text="×" top="1" width="100%" styleName="MyLabel"/>

s|Label.MyLabel { color: #202020; fontSize: 24; textAlign: center; }
s|Label. MyLabel:over { color: #a12100; }
s|Label. MyLabel:down { color: #a12100; }

Michael J. Regert





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to