1 Reply Latest reply on Dec 4, 2007 7:32 PM by Newsgroup_User

    AS2 - Get Total Animation Time/Frames?

    jc_2006
      Hi. I've done quite a long slideshow using AS2 rather than keyframe animation, and I'd like to find out how many frames it runs for in total. I want to export as a Quicktime movie, but unless there are enough frames on the timeline the whole animation won't export. I know _totalFrames works with keyframe animation but is there a way of getting the same information if everything's done in actionscript? Even a total time would be ok as I can easily convert that to frames.
      Thanks!
        • 1. Re: AS2 - Get Total Animation Time/Frames?
          Level 7
          jc_2006,

          > I know _totalFrames works with keyframe animation but is
          > there a way of getting the same information if everything's
          > done in actionscript?

          The concept of frames doesn't really apply in the same way here. The
          MovieClip._totalframes property is really nothing more than a count of the
          number of frames in a given timeline (that is, a given movie clip). In your
          case, make note of how many seconds it takes to transition from one image to
          the next, then multiply that number by the total number of images in your
          slideshow. That'll give you total time. When you export, use the "After
          time elapsed" choice under "Stop exporting."


          David Stiller
          Co-author, Foundation Flash CS3 for Designers
          http://tinyurl.com/2k29mj
          "Luck is the residue of good design."