MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 575

Components language reference
Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

FLVPlayback.bytesTotal
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.bytesTotal
Description
Property; a number that specifies the total number of bytes downloaded for an HTTP
download. Returns -1 when there is no stream, when the stream is from a FCS, or if the
information is not yet available. The returned value is useful only for an HTTP download.
Read-only.
Example
The following example uses the
loaded for an HTTP download. When the
handler displays this value in the text area my_ta.
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Drag a TextArea component to the Stage below the FLVPlayback instance and
give it an instance name of my_ta. Then add the following code to Frame 1 of the Timeline in
the Actions panel:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
- TextArea component on the Stage with an instance name of my_ta
*/
import mx.video.*;
my_ta.visible = false;
var listenerObject:Object = new Object();
listenerObject.metadataReceived = function(eventObject:Object):Void {
my_ta.text = "Loading: " + my_FLVPlybk.bytesTotal + " bytes.";
my_ta.visible = true;
};
my_FLVPlybk.addEventListener("metadataReceived", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
property to display the number of bytes being
bytesTotal
metadataReceived
event occurs, the event
FLVPlayback class
573

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