Media.click - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example uses an object listener to determine the playhead position
(
Media.playheadTime
var myPlayerListener:Object = new Object();
myPlayerListener.change = function(eventObj:Object) {
var myPosition:Number = myPlayer.playheadTime;
var myPercentPosition:Number = (myPosition/myPlayer.totalTime);
};
myPlayer.addEventListener("change", myPlayerListener);
See also
,
Media.playing
Media.pause()

Media.click

Applies to
MediaController, MediaPlayback.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
var listenerObject:Object = new Object();
listenerObject.click = function(eventObj:Object) {
// ...
};
myMedia.addEventListener("click", listenerObject);
Description
Event; broadcast when the user clicks the Play/Pause button. The detail field can be used to
determine which button was clicked. The
properties:
The string
detail
A reference to the MediaController or MediaPlayback instance.
target
The string
type
"click"
860
Media components (Flash Professional only)
), from which the percentage complete can be calculated:
or
.
"pause"
"play"
.
event object has the following
Media.click

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