User Guide

636 FLVPlayback Component (Flash Professional Only)
FLVPlayback.progressInterval
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.progressInterval
Description
Property; a number that is the amount of time, in milliseconds, between each progress
event. If you set this property while the video stream is playing, the timer restarts. Default
value is 250.
Example
The following example sets the progressInterval property to 001 millisecond because the
FLV file is small, and then shows the number of bytes loaded for each occurrence of the
progress event.
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.*;
my_FLVPlybk.progressInterval = 001;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
var listenerObject:Object = new Object();
listenerObject.progress = function(eventObject:Object):Void {
trace(eventObject.bytesLoaded);
}
my_FLVPlybk.addEventListener("progress", listenerObject);
See also
FLVPlayback.progress