I tried your same example, it works fine, using the styleName property.

Don't know other that you might be using styles that are not implemented or not obvious in the style change.

Just for your own test, in your selector style, insert a color style, change it and see if your styleName is working at that point, then go backwards at what you are trying to checkout.

Peace, Mike

On 2/3/06, Jonathan Miranda <[EMAIL PROTECTED]> wrote:

I've been forced a little out of my box into the flex styles world and having issues with this…can someone explain what I'm doing wrong? I have a "Button" style and a ".panelButton" style. The Button covers all the buttons, but if I stick a "stylename=panelButton", neither works at all.

<mx:Style>

Button {

font-size: 10pt;

color: #00476B;

cornerRadius: 8;

textAlign: left;

}

.panelButton {

marginLeft: 20;

font-weight:bold;

}

</mx:Style>

<mx:Button styleName="panelButton" id="panel3btn1" label="Staying Healthy" width="195" height="24"/>

 

The button now has 0 style effects. I also can't get width or height into the style with it working. Help?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to