0 Replies Latest reply on Mar 8, 2007 2:40 AM by german01

    FLV multiple cue points

    german01 Level 1
      I'm new to FLV. I'm working with a FLV file named "process.flv". I wan to synchronize video with text in a Movie Clip called "Texto" using cue points.

      My playback component is named = movi1
      The FLV video is called = process
      An instance of MC where the text is on the stage. This MC has frames labeled one, two, three, etc. Each of this frames contains text

      here is my code that lets me see only the first cue point.

      import mx.video.*;
      movi1.contentPath = "process.flv";
      movi1.playButton =VideoControl.my_playButton;
      mov1.pauseButton=VideoControl.my_pauseButton;
      movi1.stopButton=VideoControl.my_stopButton;
      movi1.seekBar=VideoControl.my_seekButton;

      var CuePt:Object = new Object ();
      cuePt.time= 0.5
      cuePt.name = "ASCuePt1";
      cuePt.type = "actionscript"
      mov1.addASCuePoint (cuePt);

      // more cue points up to 8//

      movi1.addASCuePoint(4.5, "ASCuePt2");
      movi1.addCuePoint (15.5, "ASCuePt3");

      // Adding more cue Points//

      movi1.addASCuePoint("ASCuePt2");
      movi1.addASCuePoint("ASCuePt3");

      // adding listener//

      var listenerObject:Object = new Object();
      listenerObject.cuePoint = function (eventObject:Object): Void {
      _root.Texto. gotoAndStop("two");
      };
      mov1.addEventListener("cuePoint", listenerObject);
      listenerObject.complete = function (eventObject:Object): Void{
      _root.Texto.gotoAndStop("three");
      }
      movi1.addEventListener("complete", listenerObject);

      PLEASE PROVIDE ACTION SCRIPT so that at each cue point text is displayed.


      Thanks

      German