7 Replies Latest reply on Oct 16, 2006 8:52 PM by yerba3409

    Preload whole movie

    yerba3409
      Hi - I want to preload a whole movie of externally linked flash and video for smooth playback from hard disk. It's projections for a performance so I don't care about the amount of resources it takes up. (about 60Mb)
      I have tried a movie script:
      on startMovie
      preLoad()
      end
      and I have tried changing the setting in the cast preferences to "Preload before first frame". Neither of these has worked - the only thing that makes it run smoothly is to run through the whole show beforehand, and then go back to the beginning. Any ideas?

      I'm on MX04 and OSX 10.3.9

      Thanks in advance.
        • 1. Re: Preload whole movie
          johnAq Level 1
          Here's one I've actually used in the past that seems to work.

          Place every piece of media in a frame of the score and play through it - simple. Obviously you'll need to place them off screen or put a full screen image in a channel above them to hide it from the user.

          Another advantage of this is that you can also create a simple progress bar without scripting - a basic graphic that grows each frame.

          hth

          johnAq
          • 2. Re: Preload whole movie
            yerba3409 Level 1
            Thanks. It's not exactly elegant but that's director isn't it.. Thanks again.
            • 3. Re: Preload whole movie
              duckets Level 1
              how about this in your startmovie handler:

              ----------------------------------------------------
              repeat with cn = 1 to _movie.castlib.count
              repeat with mn = 1 to _movie.castlib(cn).member.count
              member(mn,cn).preload()
              end repeat
              end repeat
              ----------------------------------------------------

              hope this helps!

              - Ben

              • 4. Re: Preload whole movie
                yerba3409 Level 1
                Thank you - nothing seems to have the same effect as running through the presentation and then going back to the start. Only then does it seem properly preloaded. Odd.

                Thanks very much for your time and interest tho.

                robotduck.. now that sounds worth checking out...
                • 5. Re: Preload whole movie
                  FasterPastor Level 1
                  Ben:

                  I like the look of that script, but the part that says "_movie." does not seem to work on Dir 8.5 here. Is a line needed prior that stores some "movie" term in "_movie"? I tried "the movie" etc. What am I missing?
                  • 6. Re: Preload whole movie
                    FasterPastor Level 1
                    Ben

                    I have Dir 8.5. I got your great script idea to work by using this syntax:

                    ----------------------------------------------------
                    repeat with cn = 1 to the number of castLibs in the movie
                    repeat with mn = 1 to the number of members of castLib cn
                    member(mn,cn).preload()
                    end repeat
                    end repeat
                    ----------------------------------------------------
                    • 7. Re: Preload whole movie
                      yerba3409 Level 1
                      Nope, still doesn't work for me. Does anyone think that it's cause my Flash files are linked not embedded?