1 Reply Latest reply on Nov 10, 2012 7:58 PM by Sean_Wilson

    Telling Director to continue after a movie is done playing

    spdorsey6969 Level 1

      Hello

       

        I'm making a simple DIR presentation which will:

       

      1) play a movie full-screen

       

      2) when the movie is done, it will loop another movie until quit

       

        Currently, I have the playback head looping through the first movie, and it plays back just fine. What do I need to do to make sure that Director detects and moves past the movie when it is finished playing, so that it can move forward to the second movie loop at the end of the presentation?

       

      Thanks

        • 1. Re: Telling Director to continue after a movie is done playing
          Sean_Wilson Adobe Community Professional

          Depending on which member type your video uses, you monitor for the current time in the sprite being equal to the duration of its associated member - at which point it has finished playing.

          property spriteNum
          property my
          property myDuration
          
          on beginSprite me
            my = sprite(spriteNum)
            myDuration = my.member.duration
          end
          
          on enterFrame me
            if my.currentTime = myDuration then go next
          end
          
          1 person found this helpful