Controlling Video Playback Using Behaviors - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

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

Advertisement

To update a video clip:
Select the video clip in the Library panel.
1.
Select Properties from the Library options menu.
2.
In the Embedded Video Properties dialog box, click Update.
3.
Navigate to the updated video file and click Open. The file is reimported into the
4.
Flash document.
To replace a video clip with an FLV clip:
Select the video clip in the Library panel.
1.
Select Properties from the Library options menu.
2.
In the Embedded Video Properties dialog box, click Import.
3.
Navigate to the FLV file that will replace the current clip, and click Open.
4.

Controlling video playback using behaviors

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 let
you add the power, control, and flexibility of ActionScript coding to your document without
having to create the ActionScript code. Video behaviors let you play, stop, pause, rewind, fast-
forward, show, and hide a video clip.
To control a video clip with a behavior, you use the Behaviors panel to apply the behavior to a
triggering object, such as a movie clip. You specify the event that will trigger 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 triggering object must be a movie clip. It is not possible to attach video playback behaviors to
button symbols or button components.
The following behaviors come with Flash MX 2004 and Flash MX Professional 2004 and are
used to control embedded video:
Behavior
Play Video
Stop Video
Pause Video
Rewind Video
Fast Forward Video
Hide Video
Show Video
Purpose
Plays a video in the current document. Instance name of target video
Stops the video.
Pauses the video.
Rewinds the video by the specified
number of frames.
Fast-forwards the video by the
specified number of frames.
Hides the video.
Shows the video.
Parameters
Instance name of target video
Instance name of target video
Instance name of target video
Number of frames
Instance name of target video
Number of frames
Instance name of target video
Instance name of target video
Controlling video playback using behaviors
191

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents