MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 626

Components language reference
Table of Contents

Advertisement

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.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
if(eventObject.info.name == "point2")
trace("point2 occurred at " + my_FLVPlybk.playheadPercentage + "
percent of FLV");
if(eventObject.info.name == "point3")
my_FLVPlybk.playheadPercentage = 10;
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
See also
FLVPlayback.playheadTime
FLVPlayback.playheadTime
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.playheadTime
Description
Property; a number that is the current playhead time or position, measured in seconds, which
can be a fractional value. Setting this property triggers a seek and has all the restrictions of
a seek.
When the playhead time changes, which includes once every .25 seconds while the FLV file
plays, the component dispatches the
624
FLVPlayback Component (Flash Professional Only)
,
FLVPlayback.seekPercent()
playheadUpdate
,
FLVPlayback.totalTime
event.

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents