Example
For a MediaController component instance named myMedia (and with a Window
component in the library), the following example opens a pop-up window when the user
clicks the Play/Pause button:
var myMediaListener:Object = new Object();
myMediaListener.click = function(eventObj:Object) {
mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true);
};
myMedia.addEventListener("click", myMediaListener);
Media.complete
Applies to
MediaDisplay, MediaPlayback.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObj:Object) {
// ...
};
myMedia.addEventListener("complete", listenerObject);
Description
Event; notification that the playhead has reached the end of the media. The
event object has the following properties:
A reference to the MediaDisplay or MediaPlayback instance.
target
The string
type
"complete"
.
Media.complete
Media.complete
861
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers