Fire event when FLV finishes playing

Posted on 2006-04-11
Medium Priority
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

by:Dushan De Silva
ID: 16432649
Hi clickclickbang,

Sometimes following solution might helpful for you.


BR Dushan
LVL 34

Accepted Solution

Aneesh Chopra earned 2000 total points
ID: 16432884

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
import mx.video.*;
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

839 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