4 Replies Latest reply on Oct 1, 2010 10:53 PM by Milad.Ghattavi

    detect the end of flvplayback


      i have an flvplayback component on stage, named the instance flvPlayer and added this code to frame 1, so a video loads in it.

      flvPlayer.source = "clip1.flv";


      the videos plays from the local folder perfectly.


      I need a code that when the video ends, it jumps and stop to frame 1 of scene2.

      something like:


      scene 1, Frame 1:


      flvPlayer.source = "clip1.flv";

      // code for detecting the end of the video and jumping

      when flvPlayer completed

          MovieClip(this.root).gotoAndStop(1, "Scene 2");