Fire event when FLV finishes playing

Posted on 2006-04-11
Last Modified: 2008-02-01
How do you fire an event ie. play another FLV or movie clip after one FVL has finished playing. Also is there a way to control how much is buffered of a FLV and play the FLV once a certain percentage has been met?
Question by:clickclickbang
    LVL 17

    Expert Comment

    Hi clickclickbang,

    Sometimes following solution might helpful for you.

    BR Dushan
    LVL 34

    Accepted Solution


    here I have uploaded a sample FLA for you..

    "FLVPlayback" class support a event "onComplete" which can be used to raise an onComplete event.
    sample FLA shows how to attach a listner object to listen oncomplete event.
    It shows "movie finished" message on movie complete.

    here is the code for reference
    my_FLVPlybk.contentPath = "myVideo.flv";
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void
    my_FLVPlybk.addEventListener("complete", listenerObject);
    movieComplete = function ()
          movieState.text = "movie finished";

    yes, you can control how much to buffered to play.. if you select the "FLVPlayback" component instance in FLA and see the parameters tab,
    there is a parameter "bufferTime", set the value here for buffering...


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now