0 Replies Latest reply on Nov 21, 2006 9:06 AM by Media Post

    FLV Progressive Download SeekNavCue

    Media Post
      Hello! I have been working on this issue for a couple days now and cannot seem to find the resolution. I have a flash movie that includes three FLV files that are progressively downloaded. I have no problems playing them, but when I get to a certain point in one, I want to switch to the other, but start the second FLV at a certain cue point. The test works when I play from my hard drive, but Since the files are progressive download, they don't jump to the correct cue point when viewed online. Any suggestions on what I should try next? My code for the FLV switch is below:

      This is on the first frame (checks to see if the root var is set to 1, if not then it should jump to a specific point in the FLV):

      import mx.video.FLVPlayback;
      var pam_vid:FLVPlayback;

      if (_root.link == 1) {
      pam_vid.play();
      }

      if (_root.link == 2) {
      pam_vid.seekToNavCuePoint(repeatStory);
      pam_vid.play();
      }


      This script is put on the last frame (detects when the video file is done playing, then jumps to frame 1 and checks the root var):

      import mx.video.FLVPlayback;
      stop();

      //
      var listenerObject:Object = new Object();
      pam_back.addEventListener("cuePoint",listenerObject);
      listenerObject.cuePoint = function(infoObject:Object):Void {
      if(infoObject.info.name == "cue2"){
      trace("cue2");
      _root.link = 2;
      gotoAndPlay(1);
      }
      }
      //


      thanks,
      Christy