For information on video fundamentals, such as streaming, progressive download,
dimensions, encoding, importing, and bandwidth concerns, see
Video"
in Using Flash.
This section discusses using FLV video without components. You can also use the
FLVPlayback component to play FLV files or use the VideoPlayback class to create a custom
video player that loads FLV files dynamically (see
www.macromedia.com/support/documentation/). For information on using FLV video with
the FLVPlayback and Media components, see the following sections:
"FLVPlayback Component (Flash Professional Only)" on page 489
"Media components (Flash Professional only)" on page 813
As an alternative to importing video directly into the Flash authoring environment, you can
use ActionScript to dynamically play external FLV files in Flash Player. You can play FLV files
from an HTTP address or from a local file system. To play FLV files, use the NetConnection
and NetStream classes and the
information, see
NetConnection
(Video.attachVideo method)
You can create FLV files by importing video into the Flash authoring tool and exporting it as
an FLV file. If you have Flash Professional 8, you can use the FLV Export plug-in to export
FLV files from supported video-editing applications.
Using external FLV files provides certain capabilities that are not available when you use
imported video:
Longer video clips can be used in your Flash documents without slowing down playback.
External FLV files play using cached memory, which means that large files are stored in
small pieces and accessed dynamically, requiring less memory than embedded video files.
An external FLV file can have a different frame rate than the Flash document in which it
plays. For example, you can set the Flash document frame rate to 30 frames per second
(fps) and the video frame rate to 21 fps. This setting gives you better control of the video
than embedded video, to ensure smooth video playback. It also allows you to play FLV
files at different frame rates without the need to alter existing Flash content.
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, such as accessing a CD-ROM drive. FLV files can perform
functions independently of the Flash document, which does not interrupt playback.
604
Working with Images, Sound, and Video
www.macromedia.com/devnet/flash
method of the Video class. For more
attachVideo()
,
, and
NetStream
in the ActionScript 2.0 Language Reference.
Chapter 11, "Working with
attachVideo
or
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?