1 Reply Latest reply on Aug 22, 2007 6:20 AM by shurleynova

    Loader Does not work

    GOPAL_GAUTAM
      my Loader Does Not Work. i am create loader with animation. total animation are build a 100 frame.code should be write but loader does not work .Please help................



        • 1. Re: Loader Does not work
          shurleynova
          Not sure why you are doing it that way but here is a loader script I use all the time that I got off a tutorial a while back it is percent driven. You may or may not want to use it but you might be able to modify it to your own need. It basuically displays the percent in a dynamic text box and makes a movieClip named loadBar expand based on percent loaded.

          onClipEvent (enterFrame) {
          loading = _parent.getBytesLoaded();
          total = _parent.getBytesTotal();if (percent == undefined) percent = 0;
          percent -= (percent-((loading/total)*100))*.25;
          per = int(percent);
          percentage = per+"%";
          loadBar._width = per;
          if (percent>99) {
          _parent.gotoAndStop(2); }
          }