MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1069

Components language reference
Table of Contents

Advertisement

To set multiple border styles as parameters of the createClassObject method:
1.
Select File > New and create a new Flash document.
2.
In the first frame of the main timeline, add the following ActionScript to the Actions panel:
createClassObject(mx.controls.TextArea, "my_ta", 1, {borderStyle:
"menuBorder", themeColor: "0x990000"});
For more information, see
multiple styles and apply them to more than one component instance, you can establish a
new style declaration containing the style settings, and then attach that style declaration to
the component instances (see "Setting custom styles for groups of components" in Using
Components).
3.
Select Control > Test Movie to test the SWF file.
To set a border style using the Sample theme:
1.
Select File > New and create a new Flash document.
2.
Drag a Button component to the Stage, and give it the instance name my_btn.
You can also create the instance by using ActionScript, as follows (be sure to drag a Button
component to the library first):
createClassObject(mx.controls.Button, "my_btn", 1);
3.
Select File > Import > Open External Library.
4.
Open the SampleTheme.fla file, located in:
Windows: \Program Files\Macromedia\Flash 8\
language\Configuration\ComponentFLA\
Macintosh: HD/Applications/Macromedia Flash 8/Configuration/ComponentFLA/
5.
In the SampleTheme.fla library, find the Button assets movie clip in Flash UI Components
> Themes > MMDefault > Button Assets > Button Skin and drag it to the library of your
current document.
UIObject.createClassObject()
. Or, if you want to set
Using styles with the RectBorder class
1065

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents