var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener("complete", myLis);
import fl.video.VideoEvent;
flvPlayer.addEventListener(VideoEvent.COMPLETE, videoFinished);
function videoFinished(event:Event){
flvPlayer.play();
};
I have another question. While I was looking up a solution for this, I found
the following AS2 script which you're supposed to apply to an flv object, I
believe:
on (complete) {
this.autorewind =true;
this.play();
}
Is there an AS3 equivalent to this script?