MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 75

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

Advertisement

You can use class style declarations and color names to easily control the colors of text and
symbols on the screen. For example, if you want to provide a display configuration screen that
looks like Microsoft Windows, you would define color names like ButtonText and WindowText
and class style declarations like Button, CheckBox, and Window.
Note: Some components provide style properties that are an array of colors, such as
alternatingRowColors
names.
Customizing component animations
Several components, such as the Accordion, ComboBox, and Tree components, provide
animation to demonstrate the transition between component states—for example, when
switching between Accordion children, expanding the ComboBox drop-down list, and expanding
or collapsing Tree folders. Additionally, components provide animation related to the selection
and deselection of an item, such as rows in a list.
You can control aspects of these animations through the following styles:
Animation style
openDuration
openEasing
popupDuration
selectionDuration
selectionEasing
The mx.transtions.easing package provides six classes to control easing:
Easing class
Back
Bounce
Elastic
. You must set these styles only as an array of numeric RGB values, not color
Description
The duration of the transition for open easing in Accordion, ComboBox,
and Tree components, in milliseconds. The default value is 250.
A reference to a tweening function that controls the state animation in the
Accordion, ComboBox, and Tree components. The default equation uses
a sine in/out formula.
The duration of the transition as a menu opens in the Menu component, in
milliseconds. The default value is 150. Note, however, that the animation
always uses the default sine in/out equation.
The duration of the transition in ComboBox, DataGrid, List, and Tree
components from a normal to selected state or back from selected to
normal, in milliseconds. The default value is 200.
A reference to a tweening function that controls the selection animation in
ComboBox, DataGrid, List, and Tree components. This style applies only
for the transition from a normal to a selected state. The default equation
uses a sine in/out formula.
Description
Extends beyond the transition range at one or both ends one time to
provide a slight overflow effect.
Provides a bouncing effect entirely within the transition range at one or
both ends. The number of bounces is related to the duration: longer
durations produce more bounces.
Provides an elastic effect that falls outside the transition range at one or
both ends. The amount of elasticity is unaffected by the duration.
Using styles to customize component color and text
75

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents