RE: [flexcoders] component CSS
.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}/
Re: [flexcoders] component CSS
Yeah, placing null in CSS won't work. The more important question is why do you want the upskin of the button to be null? What's your desired effect? If it's to have no skin, just a button label on up, but visible skins on rollover and down, you could always either create a programmatic skin that draws nothing, and assign that as the skin, or else create a transparent png and assign that as your skin. -p On 12/21/06 12:06 AM, graysonpierce [EMAIL PROTECTED] wrote: 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}/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[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}/
Re: [flexcoders] component CSS
load the css in the component On 21/12/2006, at 4:06 PM, graysonpierce wrote: 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: