MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1070

Components language reference
Table of Contents

Advertisement

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");
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).
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
case,
does not mean transparent, it means a neutral gray.
"none"
1066
RectBorder class
of
"borderColor"
"none"
, the button has a gray border. In this

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents