MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 611

Components language reference
Table of Contents

Advertisement

Edition
Flash Professional 8.
Usage
my_FLVPlybk.metadataLoaded
Description
Property; a Boolean value that is
processed or if the FLV file was encoded without the metadata packet. In other words, the
value is
if the metadata is received, or if you are never going to get any metadata. So, you
true
know if you have the metadata; and if you don't have the metadata, you know not to wait
around for it. If you just want to know whether or not you have metadata, you can check the
value with:
FLVPlayback.metadata != null
Use this property to check whether you can retrieve useful information with the methods for
finding and enabling or disabling cue points. Read-only.
Example
The following example creates a listener for the
example checks whether the
values
,
height
width
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.progress = function(eventObject:Object):Void {
if(my_FLVPlybk.metadataLoaded){
trace("Height is " + my_FLVPlybk.metadata.height);
trace("Width is " + my_FLVPlybk.metadata.width);
trace("Duration is " + my_FLVPlybk.metadata.duration + " seconds");
}
};
my_FLVPlybk.addEventListener("progress", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.metadata
if a metadata packet has been encountered and
true
metadataLoaded
, and
in the Output panel.
duration
,
FLVPlayback.metadataReceived
event. When the event occurs, the
progress
property is
and, if so, shows the metadata
true
FLVPlayback class
609

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents