0 Replies Latest reply on Aug 25, 2008 10:34 PM by jvalerie_1

    preloader in scrollpane

    jvalerie_1
      I have a preloader for a swf file that works fine on its own, until I load the swf into a scrollpane - then it doesn't show up at all. Any suggestions? Here is the script that I am using:

      this.onEnterFrame = function() {
      var amount:Number = this.getBytesLoaded() / this.getBytesTotal() * 100;
      preloader._xscale = amount;
      loadText.text = Math.round(amount) + "%";
      if(amount == 100) {
      this.gotoAndPlay("furniture");
      delete this.onEnterFrame;
      }
      }