1 Reply Latest reply on Jul 16, 2006 8:26 AM by

    Cue Point triggering MC

      I'm trying to figure out the simplest bit of AS to listen for a cue point Name and fire a Movie Clip below the video.
      For example, I have 5 different Movie Clips, as the video hits a Cue Point Name it should trigger the appropriate MC.

      Here's the code I've got so far, but this fires off the same MC on each Cue Point as I haven't figured out how to reference the Cue Point Name. The FLVPlayback is named vid and the MC are named slider01 and slider02, the cue points are ActionScript type and named cue01 and cue02.

      Any help would be greatly appreciated.

        • 1. Re: Cue Point triggering MC
          I figured it out:


          var listenerObject:Object = new Object();
          listenerObject.cuePoint = function(eventObject:Object):Void {
          // Put any code you like here

          if (eventObject.info.name == "1"){
          if (eventObject.info.name == "2"){
          my_FLVPlybk.addEventListener("cuePoint", listenerObject);