2 Replies Latest reply on Jun 30, 2006 10:09 PM by blueprnt

    Show the progress of a download

      I am using the script below to download an image on to the users computer it works fine but I was wondering is there a way of showing the progress of the download on the screen. Thanks BP :)

        • 1. Re: Show the progress of a download
          Iwaves Level 1
          The progress of Download can be shown by using the flowing code but u have to create a movieclip so that it starts from initial 0 position to 100 position when the download completes.

          This is the Code .Try it and check whether it works correctly.

          var my_lv:LoadVars = new LoadVars();
          var checkProgress = function (lv:LoadVars) {
          var bytesLoaded:Number = lv.getBytesLoaded();
          var bytesTotal:Number = lv.getBytesTotal();
          var percentLoaded:Number = Math.floor((bytesLoaded/bytesTotal)*100);
          mc_Preloader._xscale = percentLoaded;
          txt_Preloader.text = percentLoaded+" %";
          my_lv.onLoad = function(success:Boolean) {
          if (success) {
          delete intervalID;

          } else {
          • 2. Show the progress of a download
            blueprnt Level 1
            I add the code like below but it didn't work am I putting it in the wrong place????
            BP :)