[COLOR=#191970]hey there!
I’d be really thankful if anyone could help me with a problem im having… what i basically want to do is this:
- Imagine you click on a button which forwards you to a keyframe 10.
- On keyframe 10 there is an imported FLV with an embedded cuepoint
- As soon as the video reaches the cuepoint the whole thing should go and stop on keyframe 20 (on the timeline of course)
Seems this shouldnt be too hard, yet I cant do it. I found this on one of the forums and added it to a keyframe on the main timeline, yet it didn’t work for some reason…
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
var cuePtName = eventObject.info.name;
if (cuePtName == “NameofCuePoint”) {
gotoAndStop(framenumber);
}
};
my_FLVPlybk.addEventListener(“cuePoint”, listenerObject);
I have a terrible feeling I’m missing some utterly small detail make this work. please reply! thanks!!:)[/COLOR]