FLVPlayback.ready
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("ready", listenerObject);
Description
Event; dispatched when FLV file is loaded and ready to display. It starts the first time you
enter a responsive state after you load a new FLV file with the
starts only once for each FLV file that is loaded.
The event object has the
index number of the video player to which this event applies. For more information on the
property, see
FLVPlayback.activeVideoPlayerIndex
FLVPlayback.visibleVideoPlayerIndex
Example
/**
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;
my_FLVPlybk.autoPlay = false;
my_ta.setSize(260, 30);
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_ta.text = "The FLV is ready. Push Play to start playing";
my_ta.visible = true;
};
my_FLVPlybk.addEventListener("ready", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
,
state
playheadTime
on page
play()
, and
properties. The
vp
on page 549
688.
or
method. It
load()
property is the
vp
and
FLVPlayback class
637
vp
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers