12 Replies Latest reply on Mar 15, 2011 3:34 PM by MrA615

    Problem with Preloader in my Flash AS2 Game

    MrA615 Level 1

      I have been using this tutorial to make a preloader:

      http://www.republicofcode.com/tutori.../preloader_bc/

      I have run into one problem though.
      When I simulate the download, it just shows the background color of the game while it loads, and when it finished loading, it shows the loading screen fully loaded. I have followed the tutorial exactly, except added my file names into the AS2 code.

      Here is the ActionScript in Frame 1 I have for the preloader:


      if (_root.getBytesTotal() != _root.getBytesLoaded()){
      stopAndGoto(1); 
      }
      preloaderBar._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100; 
      loaderTxt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
      
      



      Any hints or answers to what i'm doing wrong?

      Thanks, MrA615.