FLV component in AS2
I have created an FLV component which is loading a movie from a staging site. And have placed cue points within the components parameter for use with actionscript. about 11 or so…
The video is called ‘video’, and is currently located within a Movieclip with a timeline of animation called ‘playme’ I want the cuepoints of the video to trigger to gotoAndPlay cuepoints on the ‘playme’ timeline.
This is the current code:::::
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + playme.video.playheadTime);
trace("mycue: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
//gotoAndPlay(“trigger”);
}
if (playme.video.info.name == “cuepoint1”) {
playme.gotoAndPlay(“cuepoint1”);
}
if (playme.video.info.name == “cuepoint2”) {
playme.gotoAndPlay(“cuepoint2”);
}
if (playme.video.info.name == “cuepoint3”) {
gotoAndPlay(“cuepoint3”);
}
if (playme.video.info.name == “cuepoint4”) {
playme.gotoAndPlay(“cuepoint4”);
}
if (playme.video.info.name == “cuepoint5”) {
playme.gotoAndPlay(“cuepoint5”);
}
if (playme.video.info.name == “cuepoint6”) {
playme.gotoAndPlay(“cuepoint6”);
}
if (playme.video.info.name == “cuepoint7”) {
playme.gotoAndPlay(“cuepoint7”);
}
if (playme.video.info.name == “cuepoint8”) {
playme.gotoAndPlay(“cuepoint8”);
}
if (playme.video.info.name == “cuepoint9”) {
playme.gotoAndPlay(“cuepoint9”);
}
if (playme.video.info.name == “cuepoint10”) {
playme.gotoAndPlay(“cuepoint10”);
}
if (playme.video.info.name == “cuepoint11”) {
playme.gotoAndPlay(“cuepoint11”);
}
if (playme.video.info.name == “cuepoint12”) {
playme.gotoAndPlay(“cuepoint12”);
}
playme.video.addEventListener(“cuePoint”, listenerObject);
// The listener seems to be locating the video cuepoints, but the gotoAndPlay functions just dont seem to work. I have had another code working in AS3 do what I need to, but the project I am using is AS2.
Any help much appreciated…