MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 579

Components language reference
Table of Contents

Advertisement

FLVPlayback.complete
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("complete", listenerObject);
Description
Event; dispatched when playing completes because the player reached the end of the FLV file.
The component does not dispatch the event if you call the
click the corresponding controls. The event object has the properties
.
playheadTime
When the application uses progressive download, does not set the
explicitly, and downloads an FLV file that does not specify the duration in the metadata, the
video player sets
totalTime
The video player also dispatches the
Example
The following example uses the
the FLV file in the Output panel when the
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.complete = function(eventObject:Object):Void {
trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime);
};
my_FLVPlybk.addEventListener("complete", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
to an approximate total value before it dispatches this event.
stateChange
property to show the elapsed playing time of
playheadTime
complete
or
stop()
pause()
state
totalTime
and
events.
stopped
event occurs.
FLVPlayback class
methods or
and
property
577

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