FLV Playback Multiple FLVs

This is a discussion on FLV Playback Multiple FLVs within the Macromedia Flash forums in Adobe Tools category; I have an flv playback component that plays a flv. Is there a way to make it instead of just playing one loop through a series of flvs?...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-09-2008, 03:19 PM
extravaganza_
Guest
 
Default FLV Playback Multiple FLVs

I have an flv playback component that plays a flv. Is there a way to make it instead of just playing one loop through a series of flvs?
Reply With Quote
  #2  
Old 09-10-2008, 10:52 AM
Gibbah
Guest
 
Default Re: FLV Playback Multiple FLVs


This is ONE way to do it:

Add a FLVPlayback-component on the stage and name it myPlayer.

Add this code to the first frame.

var counter:int = 0;
var playList:Array = ["Video1.flv","Video2.flv","Video3.flv"];
myPlayer.source = playList[counter];
myPlayer.addEventListener(Event.COMPLETE, nextVid);
function nextVid(e:Event):void {
counter ++;
if (!playList[counter]) {
counter=0;
}
myPlayer.source = playList[counter];
}

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:27 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.