Main Page | Packages | Class Tree | Index | Help

mx.skins

class ColoredSkinElement

Object
  |
  +--mx.skins.ColoredSkinElement


class ColoredSkinElement
extends Object

Class used for coloring graphical objects in response to color style changes.

Each ColoredSkinElement is all one color so multi-color graphics must be composited from multiple ColoredSkinElements. Add the setColorStyle method to the actions for each colored graphical object.



Field Summary


_color
the colorStyle for the object


getStyle: Function
this gets applied in UIObjectExtensions

static
mixins: ColoredSkinElement
create an instance of yourself so you can add methods to other graphic objects


onEnterFrame: Function
onEnterFrame is used in the invalidate/draw mechanism

Fields inherited from class Object

__proto__, constructor, prototype

Method Summary


draw ( Void ): Void
called when a whole StyleDeclaration changes


invalidateStyle ( Void ): Void
called when a whole StyleDeclaration changes


setColor ( c: Number ): Void
called by the color style system when color changes

static
setColorStyle ( p: Object, colorStyle: String ): Void
call this in the actions for each colorable graphic element Example: mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor"); Element will now use "borderColor" for its actual color.

Methods inherited from class Object

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



Field Documentation

_color

var _color
the colorStyle for the object

getStyle

var getStyle: Function
this gets applied in UIObjectExtensions

mixins

static var mixins: ColoredSkinElement
create an instance of yourself so you can add methods to other graphic objects

onEnterFrame

var onEnterFrame: Function
onEnterFrame is used in the invalidate/draw mechanism


Method Documentation

draw

function draw(Void): Void
called when a whole StyleDeclaration changes

invalidateStyle

function invalidateStyle(Void): Void
called when a whole StyleDeclaration changes

setColor

function setColor(c: Number): Void
called by the color style system when color changes

setColorStyle

static function setColorStyle(p: Object,
 colorStyle: String): Void
call this in the actions for each colorable graphic element Example: mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor"); Element will now use "borderColor" for its actual color.


The documentation was generated from the following file:


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