Play Next FLV

Don’t know why this is always a hassle, but here is a simple way to play .flv’s one after another (actionscript 3.0). The NetStatusEvent.COMPLETE is oddly inconsistent.

ns.addEventListener(NetStatusEvent.NET_STATUS, detectEnd);

function detectEnd(myevent:NetStatusEvent):void {

switch (myevent.info.code) {

case “NetStream.Play.Stop”:

trace(“stop”);

//play video

ns.play(“video/vide.flv”);

break;

}

}

Leave a Reply

You must be logged in to post a comment.