MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 161

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder
3.
and drag the CheckBox Assets folder to the library for your document.
Expand the CheckBox Assets/States folder in the library of your document.
4.
Open the symbols you want to customize for editing.
5.
For example, open the CheckFalseDisabled symbol.
Customize the symbol as desired.
6.
For example, change the inner white square to a light gray.
Repeat steps 5-6 for all symbols you want to customize.
7.
For example, repeat the color change for the inner box of the CheckTrueDisabled symbol.
Click the Back button to return to the main Timeline.
8.
Drag a CheckBox component to the Stage.
9.
For this example, drag two instances to show the two new skin symbols.
Set the CheckBox instance properties as desired.
10.
For this example, set one CheckBox instance to
CheckBox instances to disabled.
Select Control > Test Movie.
11.
CheckBox class
Inheritance
MovieClip >
component
> CheckBox
ActionScript Class Name
The properties of the CheckBox class let you create a text label and position it to the left, right,
top, or bottom of a check box at runtime.
Setting a property of the CheckBox class with ActionScript overrides the parameter of the same
name set in the Property inspector or Component inspector.
The CheckBox component uses the Focus Manager to override the default Flash Player focus
rectangle and draw a custom focus rectangle with rounded corners. For more information, see
"Creating custom focus navigation" on page
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.controls.CheckBox.version);
Note:
The code trace(myCheckBoxInstance.version);
Method summary for the CheckBox class
There are no methods exclusive to the CheckBox class.
UIObject class
>
UIComponent class
mx.controls.CheckBox
50.
property, which is a class property. Class properties are
version
property returns a string that indicates the version
version
, and use ActionScript to set both
true
>
SimpleButton class
returns
.
undefined
CheckBox component
>
Button
161

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents