Video behaviors provide one way to control video playback. Behaviors are prewritten ActionScript scripts that you add to a triggering object to control another object. Behaviors add the power, control, and flexibility of ActionScript coding to your document without having to create the ActionScript code. Video behaviors play, stop, pause, rewind, fast-forward, show, and hide a video clip.
To control a video clip with a behavior, use the Behaviors panel to apply the behavior to a triggering object, such as a movie clip. Specify the event that triggers the behavior (such as releasing the movie clip), select a target object (the video that is affected by the behavior), and when necessary, select settings for the behavior, such as the number of frames to rewind.
The following behaviors in Flash control embedded video:
|
Behavior |
Purpose |
Parameters |
|---|---|---|
|
Play Video |
Plays a video in the current document. |
Instance name of target video |
|
Stop Video |
Stops the video. |
Instance name of target video |
|
Pause Video |
Pauses the video. |
Instance name of target video |
|
Rewind Video |
Rewinds the video by the specified number of frames. |
Instance name of target video Number of frames |
|
Fast Forward Video |
Fast-forwards the video by the specified number of frames. |
Instance name of target video Number of frames |
|
Hide Video |
Hides the video. |
Instance name of target video |
|
Show Video |
Shows the video. |
Instance name of target video |