Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Media components > Media.complete | |||
MediaDisplay, MediaPlayback.
Flash Player 7.
Flash MX Professional 2004.
var listenerObject:Object= new Object();listenerObject.complete = function(eventObj:Object) {// ...};myMedia.addEventListener("complete",listenerObject);
Event; notification that the playhead has reached the end of the media. The Media.complete event object has the following properties:
target A reference to the MediaDisplay or MediaPlayback instance.
type The string "complete".
The following example uses an object listener to determine when the media has finished playing:
var myListener:Object = new Object();
myListener.complete = function(eventObj:Object) {
trace("media is Finished");
};
myMedia.addEventListener("complete", myListener);
Flash CS3