There is a section on the use of hyphens in style properties in the doc
in the styles chapter. I will copy and paste it here for your reference
since the Beta 2 livedocs are not up yet:
-----------------------------------------------------
About property and selector names
For CSS properties, the convention is to use a hyphen for the style
property. In style definitions, you can use either the ActionScript
property name or the CSS property names, as the following example shows:
.myclass { fontStyle: italic } /* Valid property name */
.myclass { font-style: italic } /* Valid property name */
Button { fontSize: 14 } /* Valid property name */
Button { font-size: 14 } /* Valid property name */
In an MXML tag, you must use the camel-case version of the style
property; for example:
<mx:Button label="click me" fontSize="24" fontStyle="italic"/>
For the style name itself, you cannot use a hyphenated name, as the
following example shows:
.myClass { ... } /* Valid style name */
.my-class { ... } /* Not a valid style name */
-----------------------------------------------------
I admit that the wording is pretty poor, and I'll revisit that section.
Additionally, the docs have been inconsistent in the use of hyphens or
camel-case and I'll try and address that before final release.
Hth.
Matthew J. Horn
Flex docs
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland
> Sent: Thursday, March 16, 2006 2:01 PM
> To: [email protected]
> Subject: RE: [flexcoders] Re: 2.0B1 - Use of CSS style sheet
> with DataGridColumn styleName
>
> > 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?
>
> Perhaps the documentation didn't explain this but the style
> names can be represented in either way... it depends on how
> they're specified.
>
> The form that has the hyphens in it are usually the standard
> CSS syntax where as for ActionScript code, hyphens are not
> allowed in dot-syntax for accessing ActionScript property
> names so one would use the "hyphenless" syntax.
>
> Pete
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork
> Sent: Thursday, March 16, 2006 1:28 PM
> To: [email protected]
> Subject: [flexcoders] Re: 2.0B1 - Use of CSS style sheet with
> DataGridColumn styleName
>
>
>
> --
> 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/