Captioning video content is easier with external FLV files because you can use event
handlers to access metadata for the video.
To load FLV files from a web server, you might need to register the file extension and
MIME type with your web server; check your web server documentation. The MIME
type for FLV files is video/x-flv. For more information, see
files for hosting on a server" on page
For more information on FLV video, see the following topics:
"Creating a video object" on page 605
"Playing back external FLV files dynamically" on page 606
"Creating a video banner" on page 607
"Preloading FLV files" on page 609
"Working with cue points" on page 611
"Working with metadata" on page 620
"About configuring FLV files for hosting on a server" on page 623
"About targeting local FLV files on Macintosh" on page 624
Creating a video object
Before you can load and manipulate video using ActionScript, you need to create a video
object, drag it to the Stage, and give it an instance name. The following example describes
how to add a video instance to an application.
To create a video object:
1.
With a document open in the Flash authoring tool, select New Video from the pop-up
menu in the Library panel (Window > Library).
2.
In the Video Properties dialog box, name the video symbol and select Video (ActionScript
controlled).
3.
Click OK to create a video object.
4.
Drag the video object from the Library panel to the Stage to create a video object instance.
5.
With the video object selected on the Stage, type my_video in the Instance Name text box
in the Property inspector (Window > Properties > Properties).
Now you have a video instance on the Stage, for which you can add ActionScript to load
video or manipulate the instance in a variety of ways.
For information on loading FLV files dynamically, see
dynamically". For information on creating a video banner, see
on page
607.
623.
"Playing back external FLV files
"Creating a video banner"
"About configuring FLV
About using FLV video
605
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?