I have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. I can trace them and see both name and time with this:
Code:
ns.onCuePoint = function(evt:Object):Void {
banner_holder.loadMovie("banner_anime.swf");
trace(evt.name);
trace(evt.time);
}
That action will also do the loadMovie, so I know the loadMovie part works. But since there are 2 cue points the loadMovie fires with each cue point... not what I had in mind.
I just don't know how to get the loadMovie to fire outside of that function. I've tried this:
Code:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
if(eventObject.info.name == "play_vid1"){
banner_holder.loadMovie("banner_anime.swf");
}
else if (eventObject.info.name == "play_vid2"){
holder.loadMovie("intro.swf");
}
};
video_screen.addEventListener("cuePoint",listenerObject);
But that must be for the FLVPlayback component and not NetStream because it does nothing.
Any help would be much appreciated!
Best wishes,
Eye for Video
www.cidigitalmedia.com