Hi,
I've got a .flv set to pause on a cue point 2.5 seconds in. Clicking an inv_btn starts the .flv playing again. Once complete, it should start over, again pausing at the cue point. Trouble is after starting over it's pausing at the beginning, 0 instead of 2.5. I'm pretty new to Flash Video. What am I doing wrong?
code:
mediaDisplay.setMedia("spot_pe05.flv", "FLV");
mediaDisplay.addCuePoint("cueUp", 2.5);
var listener:Object = new Object();
listener.complete = function() {
trace(mediaDisplay.contentPath + " complete");
mediaDisplay.play(0);
};
listener.cuePoint = function() {
trace(mediaDisplay.contentPath + " cued");
mediaDisplay.pause();
};
mediaDisplay.addEventListener("complete", listener);
mediaDisplay.addEventListener("cuePoint", listener);
stop();