1 Reply Latest reply on Jun 18, 2008 7:25 AM by Newsgroup_User

    preloader for dynamically loaded JPGs

    Santiago_Montana
      Hello,

      I have created an array to load JPGs dynamically.. see code below. Can anyone help me create a preloader? If possible, I would like to avoid having to use additional swf files for my preloader...

      Many thanks,

      S
      _______________________________

      var slides:Array = new Array(["0", "image0.jpg"], ["1", "image1.jpg"], ["2", "image2.jpg"], ["3", "image3.jpg"]);
      var currentSlide:Number;
      function changeSlide(number){
      if (number >= 0 && number < slides.length){
      currentSlide = number;
      loadMovie (slides[number][1], "placeholder_mc");
      }
      }
      changeSlide(0);
      prev_btn.onRelease = function(){
      changeSlide(currentSlide - 1);
      }
      next_btn.onRelease = function(){
      changeSlide(currentSlide + 1);