Ok, I have an FLV that progressively downloads, on the root timeline. It’s instance name is “vid”
at 1 second into it I want it to perform a function, and at 15 seconds I want it to perform a function. So I am using this:
_root.vid.setMedia("dive.flv", "FLV");
_root.vid.addCuePoint("divecuestart", 01);
_root.vid.addCuePoint("divecueend", 15);
divelistenstart = new Object();
divelistenstart.cuePoint = function(eventObject){
doThisStuff(eventObject.target.name);
};
_root.vid.addEventListener("cuePoint",divelistenstart);
function doThisStuff(mediaCue){
switch (mediaCue) {
case "divecuestart":
trace("start");
break;
case "divecueend":
trace("end");
};
};
But it doesn’t work.
Any ideas why?