1 Reply Latest reply on Jan 2, 2011 10:31 PM by prodigalmaster

    Preloader not showing in flash player 10.1.r102

    onlinesuresh

      Hi,

       

      I have created a small game using flash 8. But the preloader is not showing, white screen is there till the game loaded. Once all the bytes got transfered it displays.

       

      This code was working previously. Is this is a problem with the current flash player? I have tried with some other preloaders as well. None of them is working. Below is the code.

       

      stop();
      loadingBar._xscale = 1;
      var loadingCall:Number = setInterval(preloadSite, 50);
      function preloadSite():Void {
          var siteLoaded:Number = _root.getBytesLoaded();
          var siteTotal:Number = _root.getBytesTotal();
          var percentage:Number = Math.round(siteLoaded/siteTotal*100);
          loadingBar._xscale = percentage;
          percentClip.percentDisplay.text = percentage + "%";
          percentClip._x = loadingBar._x + loadingBar._width;
          bytesDisplay.text = "loaded " + siteLoaded + " of " + siteTotal + " bytes";
          if (siteLoaded>=siteTotal) {
              clearInterval(loadingCall);
              gotoAndPlay("Start", 1);
          }
      }

       

      My Flash Player is 10.1.r102

       

      Here is the page which the flash is located.

       

      http://sriweddings.com/srilankanweddinggames.html

       

      Your help is greatly appreciated..

       

      Thanx

      Chathu