flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
EnhancedButtonSkin

Package | flexlib.skins
Class | public class EnhancedButtonSkin
Inheritance | EnhancedButtonSkin mx.skins.Border

This is the enhanced version of the Halo ButtonSkin that has been customized to support four numeric values in the corner, a more configurable border, and also a large number of colors in the gradient (limited by 15 in ProgrammaticSkin.drawRoundRect), individually specified for up, over, etc states..

- corner-radii: An array of four numeric values indicating the four corner radii [TL, TR, BR, BL]
- fill-colors: An array of colors to use for the fill state gradient (of arbitrary number)
- selected-fill-colors: An array of colors to use for the fill gradient of the selected state.
- over-fill-colors: An array of colors to use for the fill gradient of the over state.
- disabled-fill-colors: An array of colors to use for the fill gradient of the disabled state.
- down-fill-colors: An array of colors to use for the fill gradient of the down state.

- fill-color-ratios: An array of values from 0 to 255 that indicate the position of the colors in the selection gradient. Must match the cardinality of the fill-colors, or else a default will be used.
- selected-fill-color-ratios: An array of values from 0 to 255 that indicate the position of the colors in the selection gradient. Must match the cardinality of the fill-colors, or else a default will be used.
- over-fill-color-ratios: An array of values from 0 to 255 that indicate the position of the colors in the over gradient. Must match the cardinality of the fill-colors, or else a default will be used.
- disabled-fill-color-ratios: An array of values from 0 to 255 that indicate the position of the colors in the disabled gradient. Must match the cardinality of the fill-colors, or else a default will be used.
- down-fill-color-ratios: An array of values from 0 to 255 that indicate the position of the colors in the down gradient. Must match the cardinality of the fill-colors, or else a default will be used.

- border-colors: An array of color values for the border in the up state. (defaults to border-color).
- over-border-colors: An array of color values for the border in the up state. (defaults to theme-color derived)
- selected-border-colors: An array of values indicating the color of the selected border. (defaults to over-border-colors)

- border-thickness: The thickness of the border.
- border-alpha: The alpha value of the border.
- disabled-border-alpha (defaults to 50% of border-alpha).

Public Methods

| Method | Defined By
--- | --- | ---
|  | EnhancedButtonSkin() Constructor. | EnhancedButtonSkin

Constructor Detail

EnhancedButtonSkin | () | Constructor

`public function EnhancedButtonSkin()`

Constructor.

Mercredi Juillet 4 2012, 09:36 PM +02:00