0 Replies Latest reply on May 25, 2006 4:51 AM by mikepbenton1975

    Preloader problem


      I have a flash movie with a basic preloader movieclip on frame one of the main timeline with the following script attached:

      onClipEvent (enterFrame) {
      var loading:Number = _root.getBytesLoaded();
      var total:Number = _root.getBytesTotal();
      percent = (loading/total)*100;
      var per:Number = int(percent);
      percentage = per+"%";
      this.loadBar._width = per;
      if (percent>99) {

      The rest of the content is on frame 2.

      The preloader works fine. However the swf is used on every html page of the website and more often than not when the page is refreshed the preloader text and bar flash up very briefly before the main content is shown.

      Does anyone know how to prevent this?