Copy link to clipboard
Copied
I am using an flv file with navigation cue points. When I try clicking on a button I created to go to "EndOfMovie" I get the following error:
VideoError: 1003: Invalid seek
at fl.video::FLVPlayback/seekToNavCuePoint()
at vectorVideo_fla::MainTimeline/skipToEnd()
my AS is:
import flash.display.MovieClip;
import flash.display.Sprite;
var rectangle:Sprite = new Sprite();
rectangle.graphics.beginFill(0x333333);
rectangle.graphics.drawRect(0,0,575,269);
addChild(rectangle);
rectangle.alpha = 0;
vectorVideo_flvPb.autoPlay = true;
skipIntro_btn.addEventListener(MouseEvent.CLICK, skipToEnd)
function flvListener(eventObject:Object):void {
if(eventObject.info.name == "EndOfMovie") {
rectangle.alpha = .83;
setChildIndex(rectangle, numChildren - 3);
_replayButton.alpha = 100;
setChildIndex(_replayButton, numChildren - 2);
_replayButton.addEventListener(MouseEvent.CLICK, replayMovie);
_learnMoreButton.alpha = 100;
setChildIndex(_learnMoreButton, numChildren - 1);
_learnMoreButton.addEventListener(MouseEvent.CLICK, learnMore);
}
}
vectorVideo_flvPb.addEventListener("cuePoint", flvListener);
function skipToEnd(e:MouseEvent):void {
vectorVideo_flvPb.seekToNavCuePoint("EndOfMovie");
}
function handleClick(e:MouseEvent):void {
vectorVideo_flvPb.enterFullScreenDisplayState();
}
function replayMovie(e:MouseEvent):void {
vectorVideo_flvPb.seekToNavCuePoint("startOfMovie");
rectangle.alpha = 0;
_replayButton.alpha = 0;
_learnMoreButton.alpha = 0;
vectorVideo_flvPb.play();
}
}
need this running asap. any help is GREATLY appreciated!
Copy link to clipboard
Copied
Hi,
You can use the cue point that is added either via action script or via adobe media encoder. Just go through http://cloudnebula.blogspot.com/2010/01/working-with-as3-video-cuepoints.html that may be of help to you
Thanks!
ps: pls mark this post as answered if this of help to you