1 Reply Latest reply on Aug 23, 2006 11:58 AM by jackmonterey

    gotoFrameLabel after FLV complete.

    SugnaShane Level 2
      Hi everyone,
      Click here to see result

      I would like to make the timeline go to a specified frame after the FLV has completed playing and preload the FLV.

      I've tried the provided code in Flash Help but need more details. See what I have so far. The video is fading in and out due to editng but I need to move to another frame or label to finish it up.

      I would like a better preloader as well something like what macromedia did here:

      Adobe Experience

      Any help would be great on the ActionScript would be great.

        • 1. Re: gotoFrameLabel after FLV complete.
          this should do the job:

          - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
          Place this code in frame 1 along with the FLVPlayback component, and
          change the "my_movie.flv" on line 14 to the content path name of your FLV
          import mx.video.*;
          var listenerObject:Object = new Object();
          listenerObject.complete = function(eventObject:Object):Void {
          //trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime);
          //the above will give you a total playing time in an output window - of course
          //anything can be added here
          //a sample gotoAndStop command
          my_FLVPlybk.addEventListener("complete", listenerObject);
          my_FLVPlybk.contentPath = "my_movie.flv";