
14 Using Director MX 2004 behaviors
Fade In/Out makes a sprite gradually appear or disappear. You can set how fast and how many
times the fade occurs, as well as the minimum and maximum fade values. You can choose whether
the fade will be activated automatically in the sprite’s first frame, when the sprite is clicked, or
when the sprite is sent a message.
Random Movement and Rotation moves and rotates a sprite randomly within a specific area.
You use the behavior parameters to define a boundary for the sprite’s movement and the speed of
movement and rotation. Two other settings determine the straightness of the path from point to
point and how far the sprite rotates before reversing.
Rotate Continuously (Frame Based) rotates a sprite by a certain number of degrees per frame.
Rotate Continuously (Time Based) rotates a sprite by a certain number of degrees per second.
Rotate to Follow Path makes a sprite rotate so that it always points in the direction it’s moving.
The behavior maintains the same rotation angle relative to the sprite’s path. You can change the
sprite’s initial rotation angle.
Rotation (Frame Based) rotates a sprite by a given angle over a given number of frames. A
positive angle rotates a sprite clockwise; a negative angle rotates a sprite counterclockwise. An
angle greater than 360° results in more than one complete rotation.
Rotation (Time Based) rotates a sprite by a given angle over a given time. A positive angle rotates
a sprite clockwise; a negative angle rotates a sprite counterclockwise. An angle greater than 360°
results in more than one complete rotation.
Scale and Clip changes the size of a Flash, QuickTime, or vector shape sprite over a number of
frames or over a given time period. You can set a start and finish size, or choose to scale to or from
the current size of the sprite. If you scale to more than 100%, the image is clipped.
Slide In/Out makes sprites move in or out from the boundaries of the Stage. This behavior is
useful for presentations. You can specify whether the sprite should first appear at maximum (slide
in) or minimum (slide out) values, when the sliding should start, the minimum and maximum
slide values, the number of times the sprite should slide, and how fast the sprite should move.
Sway rotates a sprite first one way and then the other by a given angle per frame for a given
number of frames. You can set the number of degrees to rotate in each frame, the number of
frames to move in each direction, the initial rotation angle, and whether the sway starts clockwise
or counterclockwise.
Waft makes a sprite rise up on the screen like a bubble, rotating first one way and then the other
and vibrating horizontally as it rises.
Zoom In/Out makes a sprite smaller or larger over time. You can choose whether the zoom will be
activated automatically in the sprite’s first frame, when the sprite is clicked, or when the sprite is
sent a message. You can set up an endless loop, or set the zoom to occur only once.
Interactive behaviors
Interactive behaviors require some type of input from the user.
Avoid Mouse moves the current sprite away from the pointer. You can determine the speed of the
tracking, as well as the distance between the pointer and the center of the sprite. You can make
the behavior start automatically in the first frame of the sprite, or when the behavior receives a
message. The default setting for the behavior keeps the sprite from moving off of the Stage.
Kommentare zu diesen Handbüchern