|
-
ComboBox to link to flv cuepoints
Hello
I'm trying to build a cd which features a slide presentation synchronized with some flvs (with some buttons to go to the previous/next slide, pause, play, seekbar, etc.).
I got that part working, but I'm having a hard time building a comboBox which will link to individual slides, which are triggered by different cuepoints in the flvs...
Can someone help me out with code?
Plus, I don't know why, but my seekbar has stopped working correctly - it doesn't toggle when I try to manually go to a different place in the video...
Here's the code:
var uses_screens:Boolean = false;
stop();
display.playPauseButton = playpausebtn;
display.stopButton = stopbtn;
display.backButton = backbtn;
display.forwardButton = forbtn;
display.volumeBar = volbar;
display.seekBar = seekbar;
display.muteButton = mutebtn;
function seekToCuePoint(cueName):Void {
var c = display.findCuePoint(cueName);
display.seekSeconds(c.time);
}
function synchVideoToInterace(cueName:String):Void {
if (!display.playing) {
display.play();
}
if (uses_screens) {
currentSlide.gotoSlide(this[cueName]);
} else {
gotoAndStop(cueName);
}
}
var videoEventHandler:Object = new Object();
videoEventHandler.cuePoint = function(evt:Object):Void {
synchVideoToInterace(evt.info.name);
};
videoEventHandler.fastForward = videoEventHandler.rewind=function (evt:Object):Void {
var nearestCue = evt.target.findNearestCuePoint(evt.playheadTime);
synchVideoToInterace(nearestCue.name);
};
display.addEventListener("cuePoint", videoEventHandler);
display.addEventListener("fastForward", videoEventHandler);
display.addEventListener("rewind", videoEventHandler);
Thanx!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|