MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 628

Components language reference
Table of Contents

Advertisement

Usage
var listenerObject:Object = new Object();
listenerObject.playheadUpdate = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("playheadUpdate", listenerObject);
Description
Event; dispatched while the FLV file is playing at the frequency specified by the
playheadUpdateInterval
dispatch this event when the video player is paused or stopped unless a seek occurs. The event
object has the
,
state
Example
The following example catches occurrences of the
the FLV file plays and displays the elapsed playhead time in the Output panel.
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.playheadUpdate = function(eventObject:Object):Void {
trace(my_FLVPlybk.state + ": playhead time is: " +
eventObject.playheadTime);
};
my_FLVPlybk.addEventListener("playheadUpdate", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.playheadTime
FLVPlayback.playheadUpdateInterval
Availability
Flash Player 8.
Edition
Flash Professional 8.
626
FLVPlayback Component (Flash Professional Only)
property. The default is .25 seconds. The component does not
, and
playheadTime
vp
,
FLVPlayback.playheadUpdateInterval
properties.
playheadUpdate
event as it occurs while

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