Tag Archive for 'registercolorname()'

13
Sep

Checking whether a color name is a valid color in Flex using the StyleManager class

The following example shows how to use the static StyleManager.isColorName() method to check whether a color name is valid or not. This method takes a single parameter, colorName, and returns a Boolean value representing whether the parameter is a valid alias for a color.

Full code after the jump.

Continue reading ‘Checking whether a color name is a valid color in Flex using the StyleManager class’