
Originally Posted by
Jujumon
hi, video noob here.
Does anyone know how alter the code so that it will play several .flv one after another (sort a like a playlist)...
You need to and write a function and an array of flv videos to control the playback of the flv video array,
Code:
import fl.video.*;
var myvideoarray:Array=new Array();
myvideoarray[0] = "video1.flv";
myvideoarray[1] = "video2.flv";
myvideoarray[2] = "video3.flv";
var k:Number = 0;
myvideo.play(myvideoarray[k]);
myvideo.addEventListener(VideoEvent.COMPLETE, loadnext);
function loadnext(myevent:VideoEvent):void {
k++;
if (k>= myvideoarray.length) {
k=0;
}
myvideo.play(myvideoarray[k]);
}
You can also do this without ActionScript, just check this article - http://www.playerdiy.com/configurati...ext-video.html