aoi87
07-20-2006, 07:06 AM
:confused: Hi there guys,
I have an encoded flv file and am trying to use seekToNavCuePoint to send the playback head to a specified actionscript cuepoint (which is in turn triggering a movieclip on the main timeline to advance to a selected frame.)
I have the movieclip advancing at each cuepoint as it passes, but on the aforementioned seek command I am only tracing back the error "invalid seek : 1003" which doesn't seem to be in the mm livedocs or documented online anywhere. could this be due to the fact that they are not 'navigation' cuepoints as opposed to 'AS'? I was under the impression is a cuepoint can fire off a function then it was valid for seek commands. any advice would be greatly appreciated.
// Create cuePoint object.
var cuePt:Object = new Object();
cuePt.time = 5;
cuePt.name = "slide3";
cuePt.type =
// Add AS cue point.
my_flvPb.addASCuePoint(cuePt);
// Add another AS cue point.
my_flvPb.addASCuePoint(10, "slide2", "navigation");
//my_flvPb.addASCuePoint(15, "slide3");
// Display cue point information in text field.
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
my_ta.text += "Elapsed time in seconds: " + my_flvPb.playheadTime + " " + eventObject.info.name + "\n";
_root.slides.gotoAndPlay(eventObject.info.name);
//_root.my_flvPB.seekToNavCuePoint("slide3");
//_root.slides.gotoAndPlay(eventObject.info.name);
};
my_flvPb.addEventListener("cuePoint",listenerObject);
I have an encoded flv file and am trying to use seekToNavCuePoint to send the playback head to a specified actionscript cuepoint (which is in turn triggering a movieclip on the main timeline to advance to a selected frame.)
I have the movieclip advancing at each cuepoint as it passes, but on the aforementioned seek command I am only tracing back the error "invalid seek : 1003" which doesn't seem to be in the mm livedocs or documented online anywhere. could this be due to the fact that they are not 'navigation' cuepoints as opposed to 'AS'? I was under the impression is a cuepoint can fire off a function then it was valid for seek commands. any advice would be greatly appreciated.
// Create cuePoint object.
var cuePt:Object = new Object();
cuePt.time = 5;
cuePt.name = "slide3";
cuePt.type =
// Add AS cue point.
my_flvPb.addASCuePoint(cuePt);
// Add another AS cue point.
my_flvPb.addASCuePoint(10, "slide2", "navigation");
//my_flvPb.addASCuePoint(15, "slide3");
// Display cue point information in text field.
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
my_ta.text += "Elapsed time in seconds: " + my_flvPb.playheadTime + " " + eventObject.info.name + "\n";
_root.slides.gotoAndPlay(eventObject.info.name);
//_root.my_flvPB.seekToNavCuePoint("slide3");
//_root.slides.gotoAndPlay(eventObject.info.name);
};
my_flvPb.addEventListener("cuePoint",listenerObject);