User Guide
1066 RectBorder class
6. In the first frame of the main timeline, add the following ActionScript to the Actions panel:
my_btn.setStyle("buttonColor", "0xFFFFFF");
my_btn.setStyle("borderStyle", "solid");
my_btn.setStyle("borderColor", "none");
Or you can append these settings to createClassObject, as follows:
createClassObject(mx.controls.Button, "my_btn", 1, {buttonColor:
"0xFFFFFF", borderStyle: "solid", borderColor: "none"});
7.
Select Control > Test Movie to test the SWF file.
Notice that even with a
"borderColor" of "none", the button has a gray border. In this
case,
"none" does not mean transparent, it means a neutral gray.
NOTE
If you plan to set multiple styles and need to improve the performance of the
component at runtime, you can set a custom style declaration containing those styles
and then attach the custom style declaration to the component instance (see
“Setting custom styles for groups of components” in Using Components).