I have a case with my flv movies and i wanted then to play in that order but when i finish the first play, he doest go to next case
import fl.video.VideoEvent;
var video:Video = new Video();
video.attachNetStream(ns);
addChild(video);
video.width = 700;
video.height = 600;
var decisao:int = 0;
continuar(null);
var nivel:int = 0;
video_flv.addEventListener(VideoEvent.COMPLETE, continuar);
function continuar(e:VideoEvent):void
{
switch (nivel)
{
case 0 :
video_flv.play(“C1V1C.f4v”);
break;
case 1 :
video_flv.play(“C1V2C.f4v”);
break;
case 2 :
video_flv.play(“C1V3C.f4v”);
break;
}
nivel++;
}
trace(nivel);
Many thanks !