A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Senior Member 4romAshz2Flashz's Avatar
    Join Date
    Mar 2004
    Location
    Ontario, Canada
    Posts
    213

    The END....of a FLV

    How can I determine when the end of an FLV is reached to unload it? Thank you.

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Media.complete
    Applies to

    MediaDisplay, MediaPlayback
    Availability

    Flash Player 7.
    Edition

    Flash MX Professional 2004.
    Usage

    listenerObject = new Object();
    listenerObject.complete = function(eventObject){
    // insert your code here
    }
    myMedia.addEventListener("complete", listenerObject)

    Description

    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".
    Example

    The following example uses an object listener to determine when the media has finished playing:

    var myListener = new Object();
    myListener.complete = function(eventObject) {
    trace("media is Finished");
    };
    myMedia.addEventListener("complete", myListener);
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Senior Member 4romAshz2Flashz's Avatar
    Join Date
    Mar 2004
    Location
    Ontario, Canada
    Posts
    213
    Thank You!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center