Description
A class for making nice-looking, styleable buttons with gradients, without any art assets.
See test/test-roundrectbutton.lzx for several examples of how to use this component.
The component attributes are only used for initialization. They are not live constraints.
Currently the best way to change them at runtime is to apply a <style>.
Details
Properties (6)
-
downStartColor
-
<attribute name="downStartColor" type="color" value="0xFFFFFF" />
public var downStartColor : color;
-
downStopColor
-
<attribute name="downStopColor" type="color" value="0xCCCCCC" />
public var downStopColor : color;
-
overStartColor
-
<attribute name="overStartColor" type="color" value="0x999999" />
public var overStartColor : color;
-
overStopColor
-
<attribute name="overStopColor" type="color" value="0x777777" />
public var overStopColor : color;
-
upStartColor
-
<attribute name="upStartColor" type="color" value="0xcccccc" />
public var upStartColor : color;
-
upStopColor
-
<attribute name="upStopColor" type="color" value="0x999999" />
public var upStopColor : color;
LZX Synopsis
<class name="
roundrectbutton" extends="
basecomponent
">
<attribute name="
downStopColor
" type="
color" value="
0xCCCCCC" />
<attribute name="
overStopColor
" type="
color" value="
0x777777" />
<attribute name="
upStartColor
" type="
color" value="
0xcccccc" />
<attribute name="
upStopColor
" type="
color" value="
0x999999" />
</class>