extends FeathersControl › MeasureSprite › ValidatingSprite
extended by Button
backgroundSkin:DisplayObject = null
The default background skin for the button, which is used when no other
skin is defined for the current state with
The following example gives the button a default skin to use for all states when no specific skin is available:
button.backgroundSkin = new Bitmap(bitmapData);
keepDownStateOnRollOut:Bool = false
If the component's dimensions have not been set explicitly, it will
measure its content and determine an ideal size for itself. For
instance, if the
explicitWidth property is set, that value will be
used without additional measurement. If
explicitWidth is set, but
explicitHeight is not (or the other way around), the dimension with
the explicit value will not be measured, but the other non-explicit
dimension will still require measurement.
saveMeasurements() to set up the
actualHeight member variables used for layout.
Meant for internal use, and subclasses may override this function with a custom implementation.
setSkinForState (state:ButtonState, skin:DisplayObject):Void
Set the skin to be used by the button when its
matches the specified state value.
If a skin is not defined for a specific state, the value of the
backgroundSkin property will be used instead.