FLASH CS3
User Guide
321
Using external FLV files provides the following capabilities that are not available when using imported
video:
•
You can use longer video clips without slowing down playback. External FLV files are played using
cached memory
,
which means that large files are stored in small pieces and accessed dynamically; they do not require as much
memory as embedded video
files.
•
An external FLV file can have a different frame rate from the Flash document in which it plays. For example, you
can set the Flash document frame rate to 30 fps and the video frame rate to 21 fps, which gives you greater control
in ensuring smooth video playback.
•
With external FLV files, Flash document playback does not have to be interrupted while the video file is loading.
Imported video files can sometimes interrupt document playback to perform certain functions (for example, to
access a CD-ROM drive). FLV files can perform functions independently of the Flash document, and so do not
interrupt playback.
•
Captioning video content is easier with external FLV files because you can use callback functions to access
metadata for the video.
For more information on playing back FLV files, see “Playing back external FLV files dynamically” in
Learning
ActionScript 2.0 in Adobe Flash
or “Basics of video” in
Programming ActionScript 3.0
.
See also
“Export a Flash video file” on page 451
“About Flash Video encoding methods” on page 312
Behaviors used in video playback
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.
Note:
The triggering object must be a movie clip. You cannot attach video playback behaviors to button symbols or
button components.
The following behaviors in Flash control embedded video:
Behavior
Purpose
Parameters
Play Video
Plays a video in the current docu-
ment.
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 speci-
fied number of frames.
Instance name of target video
N
umber of frames