Hi coders I've been following the tutorials on the net to trigger events from cuepoints in a video, but it seems that they are not working the only one working is from 0:00:000 the others don't, here is my code.

mport fl.video.MetadataEvent;
import fl.video.VideoEvent;



miMovie.addEventListener(MetadataEvent.CUE_POINT, cp);
function cp(e:MetadataEvent):void {
trace("start");
  if (e.info.name=="cp1") {
      trace("we are cp1");
  }
  if (e.info.name=="cp2") {
      trace("we are cp2");
  }
        if (e.info.name=="cp3") {
      trace("we are cp3");
  }
                
}

I did this following a tutorial but so far is not working some help needed to understand why?

gus
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to