1 Reply Latest reply on Mar 11, 2008 2:26 AM by Pop_Clingwrap

    preloading math question

    brian914 Level 1
      I have the following AS and want my preloader to go all the way across the browser. But seems like it is not doing that. I am not sure why not. Is my math wrong?

      Thanks for any help!

      function onLoadProgress(mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
      loadbar._xscale = (bytesLoaded / bytesTotal)*Stage.width;
      }