MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 625

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

Advertisement

To create movie clip symbols for RadioButton skins:
Create a new FLA file.
1.
Select File > Import > Open External Library, and select the HaloTheme.fla file.
2.
This file is located in the application-level configuration folder. For the exact location on your
operating system, see
In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder
3.
and drag the RadioButton Assets folder to the library for your document.
Expand the RadioButton Assets/States folder in the library of your document.
4.
Open the symbols you want to customize for editing.
5.
For example, open the RadioFalseDisabled symbol.
Customize the symbol as desired.
6.
For example, change the inner white circle 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 circle of the RadioTrueDisabled symbol.
Click the Back button to return to the main Timeline.
8.
Drag a RadioButton component to the Stage.
9.
For this example, drag two instances to show the two new skin symbols.
Set the RadioButton instance properties as desired.
10.
For this example, set one RadioButton to selected, and use ActionScript to set both
RadioButton instances to disabled.
Select Control > Test Movie.
11.
RadioButton class
Inheritance
MovieClip >
component
> RadioButton
ActionScript Package Name
The properties of the RadioButton class allow you at runtime to create a text label and position it
in relation to the radio button. You can also assign data values to radio buttons, assign them to
groups, and select them based on data value or instance name.
Setting a property of the RadioButton class with ActionScript overrides the parameter of the same
name set in the Property inspector or Component inspector.
The RadioButton component uses the Focus Manager to override the default Flash Player focus
rectangle and draw a custom focus rectangle with rounded corners. For information about
creating focus navigation, see
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.RadioButton.version);
"About themes" on page
UIObject class
>
UIComponent class
mx.controls.RadioButton
"Creating custom focus navigation" on page
property, which is a class property. Class properties are
version
version
77.
>
SimpleButton class
property returns a string that indicates the version
RadioButton component
>
Button
50.
625

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?

This manual is also suitable for:

Flash mx

Table of Contents