About using FLV video
605
■
Captioning video content is easier with external FLV files because you can use event
handlers to access metadata for the video.
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
“Playing back external FLV files
dynamically”
. For information on creating a video banner, see
“Creating a video banner”
on page 607
.
TIP
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
“About configuring FLV
files for hosting on a server” on page 623
.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...