![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player supports a subset of properties in the original CSS1 specification (www.w3.org/TR/REC-CSS1). The following table shows the supported CSS properties and values, and their corresponding ActionScript property names. (Each ActionScript property name is derived from the corresponding CSS property name; the hyphen is omitted and the subsequent character is capitalized.)
CSS property |
ActionScript property |
Usage and supported values |
---|---|---|
text-align |
textAlign |
Recognized values are |
font-size |
fontSize |
Only the numeric part of the value is used; units (px, pt) are not parsed; pixels and points are equivalent. |
text-decoration |
textDecoration |
Recognized values are |
margin-left |
marginLeft |
Only the numeric part of the value is used. Units (px, pt) are not parsed; pixels and points are equivalent. |
margin-right |
marginRight |
Only the numeric part of the value is used. Units (px, pt) are not parsed; pixels and points are equivalent. |
font-weight |
fontWeight |
Recognized values are |
font-style |
fontStyle |
Recognized values are |
text-indent |
textIndent |
Only the numeric part of the value is used. Units (px, pt) are not parsed; pixels and points are equivalent. |
font-family |
fontFamily |
A comma-separated list of fonts to use, in descending order of desirability. Any font family name can be used. If you specify a generic font name, it will be converted to an appropriate device font. The following font conversions are available: |
color |
color |
Only hexadecimal color values are supported. Named colors (like |
display |
display |
Supported values are |
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |