EnhancedSimpleButton

SimpleButton
EnhancedSimpleButton

The ‘EnhancedSimpleButton’ class extends upon the ‘SimpleButton’ class by providing an enhanced foundation for additional garbage collection and color support.

See Also

com.boostworthy.core.IColorable, com.boostworthy.core.IDisposable, com.boostworthy.geom.ColorMatrix

Summary
EnhancedSimpleButtonThe ‘EnhancedSimpleButton’ class extends upon the ‘SimpleButton’ class by providing an enhanced foundation for additional garbage collection and color support.
Variables
m_objColorMatrixHolds an instance of the color matrix object for manipulating this object’s color.
Functions and Properties
EnhancedSimpleButtonConstructor.
onColorMatrixChangeCalled whenever this object’s color matrix changes.
colorMatrixGets a reference to this object’s color matrix.
disposeClean up this object for garbage collection.
initInitializes this object.
applyColorMatrixApplies the current value of the color matrix to this object by creating a new color matrix filter and applying the color matrix to it.

Variables

m_objColorMatrix

protected var m_objColorMatrix: ColorMatrix

Holds an instance of the color matrix object for manipulating this object’s color.

Functions and Properties

EnhancedSimpleButton

public function EnhancedSimpleButton()

Constructor.

onColorMatrixChange

protected function onColorMatrixChange(objEvent: Event):void

Called whenever this object’s color matrix changes.

Parameters

param objEvent An object containing information about the event. 

See Also

com.boostworthy.geom.ColorMatrix

colorMatrix

public function get colorMatrix():ColorMatrix

Gets a reference to this object’s color matrix.

Returns

A reference to this object’s color matrix. 

See Also

com.boostworthy.geom.ColorMatrix

dispose

public function dispose():void

Clean up this object for garbage collection.

init

protected function init():void

Initializes this object.

applyColorMatrix

protected function applyColorMatrix():void

Applies the current value of the color matrix to this object by creating a new color matrix filter and applying the color matrix to it.  The filter is then added to the existing filter collection for this object.

See Also

com.boostworthy.geom.ColorMatrix

The ‘IColorable’ interface defines a common interface for all colorable objects.
The ‘IDisposable’ interface defines a common interface for all objects to encorporate garbage collection.
protected var m_objColorMatrix: ColorMatrix
Holds an instance of the color matrix object for manipulating this object’s color.
public function EnhancedSimpleButton()
Constructor.
protected function onColorMatrixChange(objEvent: Event):void
Called whenever this object’s color matrix changes.
public function get colorMatrix():ColorMatrix
Gets a reference to this object’s color matrix.
public function dispose():void
Clean up this object for garbage collection.
protected function init():void
Initializes this object.
protected function applyColorMatrix():void
Applies the current value of the color matrix to this object by creating a new color matrix filter and applying the color matrix to it.
Close