5 Replies Latest reply on Jun 12, 2006 5:10 AM by Newsgroup_User

    Finding the last frame

    Level 7
      Hello everyone.

      Is there a way to find that last frame if a movie? I want to be able to
      say - jump to the last frame of the Score and want a generic behavior
      that I can resuse if my movie is 100 frames long or 300. I guess the
      work around would be just to create a marker in the last frame and call
      it LastFrame. I was wondering if there was an internal property for
      this.

      Thanks for reading and any help offered.

        • 1. Re: Finding the last frame
          Level 7
          Hello again.

          Apologies for the last message being in this forum. I realise it's not 3D
          question. I made a mistake when choosing the forum. If you can still
          answer, I would be very happy.

          Thanks.


          • 2. Re: Finding the last frame
            Level 7
            Dave wrote:
            > Hello everyone.
            >
            > Is there a way to find that last frame if a movie? I want to be able to
            > say - jump to the last frame of the Score and want a generic behavior
            > that I can resuse if my movie is 100 frames long or 300. I guess the
            > work around would be just to create a marker in the last frame and call
            > it LastFrame. I was wondering if there was an internal property for
            > this.

            Yes and surprisingly it�s called the lastFrame ;)
            --
            Agust�n Mar�a Rodr�guez

            www.onwine.com.ar > Macromedia Director demos & code
            • 3. Re: Finding the last frame
              Level 7
              Agust�n Mar�a Rodr�guez wrote:

              > Yes and surprisingly it�s called the lastFrame ;)

              Too easy :) Actually, not that easy as it sounds. I just tested it. It
              identifies the last frame of the current movie. So, works OK if you want to
              jump to the last frame of the movie you're in. But if you jump from movie1 to
              movie 2, then it opens on the movie2 on the frame number that was the end of
              1 not 2. Maybe this is not possible with 2 movies as it has open the second
              movie before it can find the lastFrame.

              Thanks.


              • 4. Re: Finding the last frame
                Necromanthus Level 2
                quote:

                Originally posted by: Dave
                Too easy :) Actually, not that easy as it sounds. I just tested it. It
                identifies the last frame of the current movie. So, works OK if you want to
                jump to the last frame of the movie you're in. But if you jump from movie1 to
                movie 2, then it opens on the movie2 on the frame number that was the end of
                1 not 2. Maybe this is not possible with 2 movies as it has open the second
                movie before it can find the lastFrame.

                From Director Help (launch Director and click on "Help / Director Help"):

                To jump to a specific frame in a different movie, use the go method, and pass it the name of the movie to jump to, and the frame name or number within that movie to jump to.
                For example, the statement go("Rosebud", "Citizen_Kane") jumps to a frame labeled Rosebud in the movie Citizen_Kane.dir


                p.s.
                Your question has nothing to do with 3D.
                • 5. Re: Finding the last frame
                  Level 7
                  necromanthus wrote:

                  > p.s.
                  > Your question has nothing to do with 3D.

                  necromanthus.
                  Please read my reply to my first post. I made a mistake with choosing the forum to
                  post this to. I am only human.