4 Replies Latest reply on Jan 11, 2007 12:13 AM by Newsgroup_User

    step by step preloader

    AarifNazir
      I have a file of 1mb
      I want only first 25kb to be loaded and played.
      at the end of this animation there is a button which says view more
      and by clicking that flash loads rest of movie and then shows it.
      but in the start it should only load 25k not whole 1 mb

      I know we can do that by making 2 movies and loading first and then
      on view more i can load 2nd movie but i want this all done in one movie.

      any ideas how can we do that

      thanks
        • 1. Re: step by step preloader
          Darshan Rane Level 3
          i am not sure wh you want to do this in one movie or swf
          you can check bytes loaded by using getbytesloaded function and then if it is 25k start playing ur movie.

          also i would suggest to keep the size down
          best option is to divide file in variuos sections
          • 2. Re: step by step preloader
            AarifNazir Level 1
            Darshan thanks for your reply

            after 25k is downloaded do u think the other remaing size 1mb - 25k would be stop downloading?

            • 3. Re: step by step preloader
              Level 7


              AarifNazir wrote:
              > I have a file of 1mb
              > I want only first 25kb to be loaded and played.
              > at the end of this animation there is a button which says view more
              > and by clicking that flash loads rest of movie and then shows it.
              > but in the start it should only load 25k not whole 1 mb
              >
              > I know we can do that by making 2 movies and loading first and then
              > on view more i can load 2nd movie but i want this all done in one movie.

              Just to clarify, you can't load part of the movie. Once open in browser
              it will cache entirely whether you want it or not, that's the default
              behavior.

              --
              Best Regards

              Urami


              --

              !!!!!!! Merry Christmas !!!!!!!
              &
              Happy New Year


              <urami>
              If you want to mail me - DO NOT LAUGH AT MY ADDRESS
              </urami>
              • 4. Re: step by step preloader
                Shandy Elliott Level 1
                I'm not sure either why you would want to go about this. If you script some action to happen once 25 kb is loaded, the external file will continue to load (unless you unload the movieclip it's loading into, but then again, that would serve no purpose. What could possibly only take up 25 kb that you would have to be included in one swf file and not split it into two?