Details
Properties (15)
-
font
-
<attribute name="font" value="Verdana" />
-
fontcolor
-
<attribute name="fontcolor" value="0x373B56" />
-
fontsize
-
<attribute name="fontsize" value="11" />
-
iconname
-
<attribute name="iconname" type="string" value="" />
public var iconname : String;
icon resource name prefix
-
icony
-
<attribute name="icony" value="0" />
y position of icon, for fine tuning.
if not specified, center the icon vertically.
-
leftresource
-
<attribute name="leftresource" type="string" value="stylishbutton_left_rsc" />
public var leftresource : String;
-
middleresource
-
<attribute name="middleresource" type="string" value="stylishbutton_middle_rsc" />
public var middleresource : String;
-
rightresource
-
<attribute name="rightresource" type="string" value="stylishbutton_right_rsc" />
public var rightresource : String;
-
showleftborder
-
<attribute name="showleftborder" type="boolean" value="false" />
public var showleftborder : Boolean;
whether to show shadow on right side of button
-
showleftedge
-
<attribute name="showleftedge" value="true" />
-
showrightborder
-
<attribute name="showrightborder" type="boolean" value="false" />
public var showrightborder : Boolean;
whether to show highlight on left side of button
-
showrightedge
-
<attribute name="showrightedge" value="true" />
public var showrightedge;
-
text
-
<attribute name="text" value="" />
text to display in the button (can leave empty)
-
texty
-
<attribute name="texty" value="0" />
y position of text, for fine tuning
-
tint
-
<attribute name="tint" value="0xD9DCF5" />
Control the look of the button. These attributes can and should
be controlled with css.
Methods (2)
-
init()
-
-
updatePositions()
-
<method name="updatePositions" />
public function updatePositions();
LZX Synopsis
<class name="
stylishbutton" extends="
basebutton
">
<attribute name="
font
" value="
Verdana" />
<attribute name="
fontcolor
" value="
0x373B56" />
<attribute name="
fontsize
" value="
11" />
<attribute name="
iconname
" type="
string" value="
" />
<attribute name="
icony
" value="
0" />
<attribute name="
leftresource
" type="
string" value="
stylishbutton_left_rsc" />
<attribute name="
middleresource
" type="
string" value="
stylishbutton_middle_rsc" />
<attribute name="
rightresource
" type="
string" value="
stylishbutton_right_rsc" />
<attribute name="
text
" value="
" />
<attribute name="
texty
" value="
0" />
<attribute name="
tint
" value="
0xD9DCF5" />
</class>
JavaScript Synopsis
public
stylishbutton extends
basebutton
{
prototype public function
init
();
}