MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1073

Components language reference
Table of Contents

Advertisement

5.
Create a new FLA file.
6.
Use Insert > New Symbol to create a new movie clip symbol.
7.
Set the name to
RectBorder
8.
If the advanced fields are not displayed, click Advanced.
9.
Select Export for ActionScript
The identifier is automatically filled in as
10.
Set the AS 2.0 class to the full class name of the custom border implementation.
This example uses
11.
Make sure that Export in First Frame is selected and then click OK.
12.
Open the RectBorder symbol for editing.
13.
Draw the graphics for the symbol.
For example, draw a hairline square with no fill. To make the custom border easy to see,
set the line color to bright red.
14.
Make sure that the graphics are flush against the upper-left corner with the x and y
coordinates set to (0,0).
Your custom
drawBorder
component requirements.
15.
Click Back to return to the main timeline.
16.
Drag several components that use RectBorder to the Stage.
For example, drag a List, TextArea, and TextInput component to the Stage.
17.
Select Control > Test Movie.
This example creates a very simple border implementation with static color and graphics. It
doesn't respond to different
of
. For examples of more complete border implementations, review the
borderStyle
examples provided for the Halo and Sample themes.
.
mx.skins.myTheme.RectBorder
implementation sets the width and height according to the
settings; it always uses the same graphics regardless
borderStyle
.
RectBorder
.
Creating a custom RectBorder implementation
1069

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents