For information on each method and property of the Tween class, see Chapter 51, "Tween
class" in the Components Language Reference. For information on each method and property of
the TransitionManager class, see Chapter 48, "TransitionManager class" in the Components
Language Reference.
To preview how each transition works with the different methods in the easing classes,
you can double-click Transition.swf in boot drive\Program Files\Macromedia\Flash
8\language\First Run\Behaviors\ or Macintosh HD:Applications:Macromedia Flash
8:First Run:Behaviors: to open the SWF file in the stand-alone player.
You can find a sample source file that adds scripted animation using these classes. Find
tweenProgress.fla in the Samples folder on your hard disk.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\Tween ProgressBar.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/Tween ProgressBar.
About the Tween class
The Tween class lets you move, resize, and fade movie clips easily on the Stage. The
constructor for the mx.transitions.Tween class has the following parameter names and types:
function Tween(obj, prop, func, begin, finish, duration, useSeconds) {
// code ...
}
The movie clip object that the Tween instance targets.
obj
A string name of a property in
prop
The easing method that calculates an easing effect for the tweened object's
func
property values.
A number that indicates the starting value of
begin
be tweened).
A number that indicates the ending value of
finish
be tweened).
A number that indicates the length of time of the tween motion. If omitted, the
duration
duration is set to
infinity
A Boolean value related to the value you specify in the
useSeconds
which indicates to use seconds if
to which the values are to be tweened.
obj
by default.
, or frames if
true
About the Tween and TransitionManager classes
(the target object property to
prop
(the target object property to
prop
duration
.
false
parameter,
489
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?