EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - Page 621

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
About using FLV video 621
To work with NetStream.onMetaData, you must have Flash Video that contains metadata. If
you encode FLV files using Flash 8 Video Encoder, your FLV file will have metadata
information in it (see the following example for a list of metadata in a FLV file encoded with
Flash 8 Video Encoder).
The following example uses
NetStream.onMetaData to trace the metadata information of an
FLV file encoded with Flash 8 Video Encoder.
To use NetStream.onMetaData to view metadata information:
1. Create a new FLA file called flvMetadata.fla.
2. In the Library panel (Window > Library), select New Video from the Library
pop-up menu.
3. In the Video Properties dialog box, name the video symbol and select Video (ActionScript
controlled).
4. Click OK to create a video object.
5. Drag the video object from the Library panel to the Stage to create a video object instance.
6. With the video object selected on the Stage, type my_video in the Instance Name text box
in the Property inspector (Window > Properties > Properties).
7. With the video instance still selected, type 320 in the width text box and 213 in the height
text box.
8. Select Frame 1 in the Timeline, and open the Actions panel (Window > Actions).
NOTE
Flash Video Exporter 1.2 and later (including Flash 8 Video Exporter), add the metadata
to your FLV files. Sorenson Squeeze 4.1 and later also adds metadata to your video files.

Table of Contents

Related product manuals