MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 76

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

Advertisement

Easing class
None
Regular
Strong
Each of the classes in the mx.transitions.easing package provides the following three easing
methods:
Easing method
easeIn
easeOut
easeInOut
Because the easing methods are static methods of the easing classes, you never need to instantiate
the easing classes. The methods are used in calls to
import mx.transitions.easing.*;
trace("_global.styles.Accordion = " + _global.styles.Accordion);
_global.styles.Accordion.setStyle("openDuration", 1500);
_global.styles.Accordion.setStyle("openEasing", Bounce.easeOut);
Note: The default equation used by all transitions is not available in the easing classes listed above.
To specify that a component should use the default easing method after another easing method has
been specified, call
Getting style property values
To retrieve a style property value, use
of UIObject (which includes all version 2 components except the Media components) inherits the
method. This means you can call
getStyle()
you can call
setStyle()
The following code gets the value of the
var myCheckBox:mx.controls.CheckBox;
var oldFontSize:Number
oldFontSize = myCheckBox.getStyle("fontSize");
trace(oldFontSize);
76
Chapter 5: Customizing Components
Description
Provides an equal movement from start to end with no effects, slowing, or
speeding. This transition is also commonly referred to as a linear transition.
Provides for slower movement at one or both ends for a speeding-up
effect, a slowing-down effect, or both.
Provides for much slower movement at one or both ends. This effect is
similar to Regular but is more pronounced.
Description
Provides the easing effect at the beginning of the transition.
Provides the easing effect at the end of the transition.
Provides the easing effect at the beginning and end of the transition.
setStyle("openEasing", null)
UIObject.getStyle()
from any component instance.
themeColor
, as in the following example.
setStyle()
.
. Every component that is a subclass
from any component instance, just as
getStyle()
style and assigns it to the variable
:
oldStyle

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