.simplebutton 
{
    upSkin: ClassReference(null);
}


works for me, but you have to spell the style name upSkin, not upskin.

 

- Gordon

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of graysonpierce
Sent: Wednesday, December 20, 2006 9:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] component CSS

 

Hello,

I have a simple CSS question. 

I have an application with a css called main.css like this:

<mx:Style source="main.css"/>

In this application I have a component that has a button that sets a 
styleName to a name defined with dot in main.css like this:

<mx:Button styleName="simplebutton"/>

if in main.css, I set the upskin for the button using the notation

.simplebutton 
{
upskin: ClassReference(null);
}

but it's ignored.

However if I do this in the component it works:

<mx:Button styleName="simplebutton" upskin="{null}/>

 

Reply via email to