Thanks for this clarification,

Regards.


--- In flexcoders@yahoogroups.com, "carnau...@..." <carnau...@...> wrote:
>
> Hello,
> 
> Here are 2 examples where the "styleName property" is getting ignored (..?..):
> 
> EXAMPLE #1 - with ProgressBar :
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
>       layout="absolute">
>       
>       <!-- Styles -->
>       <mx:Style source="assets/css/style.css"/>
> 
>       <mx:ProgressBar x="8" y="13" width="234" height="28" 
> labelPlacement="center" alpha="0.25"/>
> 
> </mx:WindowedApplication>
> 
> => works fine but the same "labelPlacement" and "alpha" properties are 
> getting ignored with this "assets/css/style.css":
> 
> ProgressBar {
>       labelPlacement: center;
>       alpha: 0.25;
> }
> => should not this CSS lead to the same result ?  (ignored here)
> 
> 
> EXAMPLE #2 - with Button:
> => http://blog.comtaste.com/2009/02/styling_itemrenderers_in_datag.html
> 
> 
> QUESTION:
> => is there maybe a list of well-known MXML structures to avoid ?
> => is there a work-arround for the above ProgressBar CSS please ?
> 
> With thanks,
> 
> Regards.
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui <aharui@> wrote:
> >
> > Post a full test case I can copy and paste to try out.  I did notice the 
> > name of the selector is myBytton, not myButton.
> > 
> > 
> > On 5/27/10 12:54 PM, "carnaud23@" <carnaud23@> wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > Hello,
> > 
> > I have noticed that the following "quite simple CSS" may be ignored 
> > depending on our MXML structure...? :
> > 
> > .myBytton {
> >  color: #111111;
> > }
> > 
> > Button {
> >  color: #222222;
> > }
> > 
> > Both CSS styles are ignored below :
> > <mx:Button styleName="myButton" .../> // color #111111 ignored
> > <mx:Button .../> // color #222222 ignored
> > => and default color for <mx:Button> gets displayed :-(
> > 
> > Does anyone know about this issue ?  and how to workarround it ?
> > 
> > With thanks,
> > 
> > Regard.
> > 
> > PS : config. is "AIR application run on WinXP via Flex Builder 3"
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>


Reply via email to