I am using the flvPlayback component from the flash library and when my video is done I want the playhead to advance to a new frame. I am trying to make sense out of the help file but I not having any luck. This is my code the play function is working but I am not sure how to integrate the the stopped function.
Any help appreciated.
stop();
//trace(video);
my_FLVPlybk.contentPath = "";
import mx.video.*;
my_FLVPlybk.autoPlay = false;
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.seekPercent(0);
my_FLVPlybk.play();
};
listenerObject.stateChange = function(eventObject:Object):Void {
if (eventObject.state == FLVPlayback.STOPPED) {
trace("State is "+FLVPlayback.STOPPED);
}
};
my_FLVPlybk.addEventListener("ready",listenerObject);
my_FLVPlybk.contentPath = "videos/"+video;