Question : How to trigger an AC2 event using FLV instance timecode.

I have a flash doc with some instances of FLVs. These FLVs are already encoded and do not contain cue point info.

I need to be able to trigger an AC2 function like: ' this.gotoAndPlay(2); ' when it gets to a certain point on the timecode in my flv instance.

For example, when it get to 15 seconds into my video, run ' instanceName.gotoAndPlay(2); '.

Answer : How to trigger an AC2 event using FLV instance timecode.

You can do something like:

var tmr=setInterval(checkTime,100);
myVideoPlayer.playheadUpdateInterval=100;
function checkTime()
{
 if (int(myVideoPlayer.playheadTime)==5)
 {
   doMyFunc();
   clearInterval(checkTime);
 }
}

Random Solutions  
 
programming4us programming4us