No access to cue-points
Hi
I have added an flv-playback instance to the stage in Flash CS4. The flv has some cuepoints named "01" - "10". The cue-points were set in AfterEffects CS4. There's some event- and some navigation-type cuepoints. I now attempted the simple task of getting a specific cuepoints' time using actionScript. Easy enough one should think, but apparently it isn't. All examples, regardless where I found them suggest using a method like this:
var vidPlayback = this.bMovie; // bMovie is the instance-name of the flv on the stage
trace(vidPlayback); // "[object FLVPlayback]"
var someCP:Object = vidPlayback.findCuePoint("02");
trace(someCP); // "null"
Why on earth is the cuepoint not found, when it's definitely there? I tried next to use the metadata-object, to see if I could get the time from there, using
for(var i=0; i<vidPlayback.metadata.cuePoints.length; i++)
{
trace("cuepoint ["+i+"] : name="+vidPlayback.metadata.cuePoints.name+" time="+vidPlayback.metadata.cuePoints.time);
}
This however throws an exception, as the metadata-property apparently is null as well. What the heck is going on?