"Best practice" in Flex apps is to use fooBarIck, because this works in
both CSS and in ActionScript.

But if you have an old HTML CSS file that uses foo-bar-ick, our CSS
parser -- but no other code in Flex -- will convert it to fooBarIck.
This is a convenience conversion for CSS compatibility.

- Gordon


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Roger Gonzalez
Sent: Thursday, March 16, 2006 11:34 AM
To: [email protected]
Subject: RE: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with
DataGridColumn styleName

I can't speak to why your particular style isn't being set, but we
accept both style name variants as equivilent, because "foo-bar-ick"
gets internally converted to "fooBarIck" in order to map to AS
identifiers (hyphens obviously don't work in identifiers).

-rg 

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork
> Sent: Thursday, March 16, 2006 10:28 AM
> To: [email protected]
> Subject: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with 
> DataGridColumn styleName
> 
> OK, this is just terrible... the documentation in the guide for "Using
> the StyleManager" here:
> http://livedocs.macromedia.com/flex/20beta1/docs/00001019.html#171182
> 
> is terribly inconsistent about what text to use to reference the
> styles. It uses "font-family", "fontFamily", "font-weight",
> "borderStyle"... What is it supposed to be?
> 
> thanks,
> Thunder
> 
> Quoted from the above mentioned page:
> ____________________________
> 
> public function initializeStyles():void {
> // Initialize the global settings.
>     StyleManager.getStyleDeclaration("global").
>         setStyle("font-family", "Arial");
>     StyleManager.getStyleDeclaration("global").
>          setStyle("font-weight", "bold");
>         
> // Initialize all TextInput controls to have solid borders.
>     StyleManager.getStyleDeclaration("TextInput").
>          setStyle("borderStyle", "solid");
> .
> .
> .
> To reset a style property of a CSSStyleDeclaration object, use the
> clearStyle() method, as the following example shows:
> 
> myComponent.clearStyle('color');
> myComponent.clearStyle('fontFamily')
> myComponent.clearStyle('themeColor')
> 
> 
> 
> 
> --- In [email protected], "thunderstumpgesatwork"
> <[EMAIL PROTECTED]> wrote:
> >
> > Guys,
> > 
> > I'm quite confused and frustrated with these external style sheets.
> > The style name in the documentation sometimes matches the style name
> > you should use in the CSS file, but not usually... 
> > 
> > For example, I'm trying to set the background color for a
> > datagridcolumn via CSS. I have successfully set it via ActionScript
> > setStyle("backgroundColor",0x5A5A5A);
> > 
> > Now, I have commented the above line out, and set the styleName
> > property to a CSS class defined as such:
> > 
> > .PivotTableDimColumn
> > {
> >     background-color: #5A5A5A;
> >     color: #FFFFFF;
> > }
> > 
> > What's strange is I know the CSS class is getting linked to the
> > column, because the "color" property is working... the text 
> is white.
> > HOWEVER, the background color does not get set. I have tried
> > "backgroundColor" and "background-color"... which should it 
> be and why
> > doesn't it work?
> > 
> > How can I tell what the proper CSS style name should be based on the
> > documented style name in the ActionScript documentation? Is there a
> > separate CSS documentation somewhere that describes the "proper"
> > styles to use?
> > 
> > thanks,
> > Thunder
> >
> 
> 
> 
> 
> 
> 
> --
> 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 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 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to