Using
Behaviors
We have included several sample behaviors that can be used
with Director 6 or later to control MpegXtra sprites. These behaviors are
contained in the "MpegXtra Behavior Library", accessible from the XTRAS->MPEGXTRA
menu. (Note: behaviors can not be used with Director 5).
There are two types
of behaviors included:
Button Controllers:
should be applied to buttons to control the playback of a MpegXtra sprite.
You can easily create buttons to play, rewind, pause, step forward, step
backward, seek to a given frame and play a segment of the video file.
You need to specify the sprite channel where the MpegXtra sprite to be
controlled is, and you can also define rollover and clicked images for
the button.
Slider Controllers:
should be applied to the "handle" of the slider, and can control the time
(position) of the MpegXtra file.
You should specify
the sprite channel where the MpegXtra sprite to be controlled is, and
also the "extent" sprite channel, which is the sprite that will limit
the movement of the slider.
Sample art:
these buttons were modified from the original ones supplied with the "Button
Library" for your convenience.
The behaviors and artwork in the behavior library are used in the "Testbed.dir"
sample movie. You might want to examine this movie in more detail to understand
exactly where and how to use each behavior.