0 Replies Latest reply on Feb 4, 2008 3:38 AM by jack_krack

    Loading Multiple swf files

    jack_krack
      Hi,

      I have about 100 swf files(containing audio) which will be played based on the user's preference. now what i want to do is when the first file is playing.. i want the next 5-6 files in order to be downloaded to the client machine (similarly for the other files till all the 100+ are downloaded....) so that the user does not have to wait before each file is played... i have come up with the following code... it downloads the files but they start playing simultaneously... i.e. the audio and the animation of the files overlap.... which should not happen... ideally the files should get downloaded and then when the user clicks on the next button or on end of the movie the next file/movie should start playing.....
      the code i have come up with so far is........

      var arr:Array = ["01", "02", "03", "04"];

      function load() {
      for (var i = 0; i<arr.length; i++) {
      Loader(i);
      }
      }
      function Loader(movie) {
      this.createEmptyMovieClip("movieclip_"+movie, -(movie+1));
      eval("movieclip_"+movie).stop();
      };



      please let me know how to fix the problem of overlapping of the audio and animation.....

      Thanks & Regards
      Jayan