0 Replies Latest reply on Dec 16, 2008 7:25 PM by bartonsmith

    Text Image Loader Issues

    bartonsmith
      Hi,
      I have the following code which creates a text loader just offset from the cursor.
      It works in IE but not Safari or Firefox.
      Any ideas?
      Cheers

      function startLoading(whichImage) {
      loadMovie(whichImage, "_root.image_holder");

      _root.onEnterFrame = function() {
      infoLoaded = _root.image_holder.getBytesLoaded();
      infoTotal = _root.image_holder.getBytesTotal();
      percentage = Math.floor(infoLoaded/infoTotal*100);
      _root.loaderText.text = percentage+"%";
      if (percentage>=100) {
      delete this.onEnterFrame;
      _root.loaderText._visible = false;
      }
      };
      }