Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  FLV Player >  Load next video
Load next video
Date: Jun 4, 2007   Views: 2375  
Question:
I have your FLV Player and i want to make it play one video - and when it finishes - jump to the next video and play it. how do i do that??
Answer:

andreit (Admin)
What you need to do is add an event listener that will capture the "complete" event and load the next video. Here is the code.

evntHandler.complete = function (){
evnt.target.content = {path:"file.flv"};
}
myPlayer.addEventListener("complete", evntHandler);
Component Info