extends FeathersControl › MeasureSprite › ValidatingSprite
extended by Button
backgroundSkin:DisplayObject = null
The display object to use as the background skin for the button.
To render a different background skin, depending on the button's current
state, pass additional skins to
The following example passes a bitmap for the button to use as a background skin:
button.backgroundSkin = new Bitmap(bitmapData);
read onlycurrentState:ButtonState = UP
keepDownStateOnRollOut:Bool = false
Determines if a pressed button should remain in the down state if the
pointer moves outside of the button's bounds. Useful for controls like
ToggleSwitch to keep a thumb in the down
state while it is being dragged around by the pointer.
The following example ensures that the button's down state remains active on roll out.
button.keepDownStateOnRollOut = true;
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.