We help IT Professionals succeed at work.

Fire event when FLV finishes playing

clickclickbang
on
Medium Priority
314 Views
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?
Thanks
Comment
Watch Question

Dushan De SilvaTechnology Architect

Commented:
Hi clickclickbang,

Sometimes following solution might helpful for you.

http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_21793569.html

BR Dushan
CERTIFIED EXPERT
Top Expert 2008
Commented:
Hi,

here I have uploaded a sample FLA for you..
http://s63.yousendit.com/d.aspx?id=3TP5GV9XG7OIH0WJIOHGEI504V


1.
"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
{
      movieComplete();
};
my_FLVPlybk.addEventListener("complete", listenerObject);
//
movieComplete = function ()
{
      movieState.text = "movie finished";
};
---------

2.
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...


Rgds
Aneesh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.