Main Page | Packages | Class Tree | Index | Help

mx.styles

class StyleManager

Object
  |
  +--mx.styles.StyleManager


class StyleManager
extends Object

The class that manages: -which CSS style properties are inheriting -which style properties are colors and therefore get special handling -a list of strings that are aliases for color values



Field Summary

static
colorNames: Object
initialize set of color names.

static
colorStyles: Object
initialize set of inheriting color styles.

static
inheritingStyles: Object
initialize set of inheriting non-color styles.

static
TextFormatStyleProps: Object
object used to determine which Flash TextFormat property values are inheriting (calculated by examining the parent if not defined on the child)

static
TextStyleMap: Object
object used to map CSS style properties to Flash TextFormat properties

Fields inherited from class Object

__proto__, constructor, prototype

Method Summary

static
getColorName ( colorName: String ): Number


static
isColorName ( colorName: String ): Boolean


static
isColorStyle ( styleName: String ): Boolean


static
isInheritingStyle ( styleName: String ): Boolean


static
registerColorName ( colorName: String, colorValue: Number ): Void


static
registerColorStyle ( styleName: String ): Void


static
registerInheritingStyle ( styleName: String ): Void


Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

colorNames

static var colorNames: Object
initialize set of color names.

colorStyles

static var colorStyles: Object
initialize set of inheriting color styles.

inheritingStyles

static var inheritingStyles: Object
initialize set of inheriting non-color styles.

This is not the complete set from CSS. Some of the omitted we don't support at all, others may be added later as needed.

TextFormatStyleProps

static var TextFormatStyleProps: Object
object used to determine which Flash TextFormat property values are inheriting (calculated by examining the parent if not defined on the child)

TextStyleMap

static var TextStyleMap: Object
object used to map CSS style properties to Flash TextFormat properties


Method Documentation

getColorName

static function getColorName(colorName: String): Number
Parameters:
colorName
the color name
Returns:
Number (the color value)

isColorName

static function isColorName(colorName: String): Boolean
Parameters:
colorName
the color name
Returns:
Boolean

isColorStyle

static function isColorStyle(styleName: String): Boolean
Parameters:
styleName
the style name
Returns:
Boolean

isInheritingStyle

static function isInheritingStyle(styleName: String): Boolean
Parameters:
styleName
the style name
Returns:
Boolean

registerColorName

static function registerColorName(colorName: String,
 colorValue: Number): Void
Parameters:
colorName
the style name (e.g. "blue")
colorValue
the color value (e.g. 0x0000FF)

registerColorStyle

static function registerColorStyle(styleName: String): Void
Parameters:
styleName
the style name

registerInheritingStyle

static function registerInheritingStyle(styleName: String): Void
Parameters:
styleName
the style name

The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc