1 Reply Latest reply on Nov 13, 2008 4:12 PM by Newsgroup_User

    Loading message - flash

    DocRocks
      I use DW8 for markup but a non-Adobe graphics program to create flash swf files. That program allows simple graphic transitions, no scripting, and creates an swf file that the Flash player can play.. I want to show a "loading" message on the page as my swf file is downloading. Is there another way to do this outside of Flash, say in javascript or with css?
        • 1. Re: Loading message - flash
          Level 7
          No you need to do this in flash. It's the only way to know when your flash
          file is loaded. Here is some code you can use to display this

          onClipEvent (load)
          {
          total = _root.getBytesTotal();
          }
          onClipEvent (enterFrame)
          {
          loaded = _root.getBytesLoaded();
          percent = int(loaded / total * 100);
          text = percent + "%";
          if (loaded == total)
          {
          _root.gotoAndPlay(2);
          } // end if
          }

          Or go in the flash forun for more answer
          aka Frenchy ASP

          Put this code in frame 1 where you movie start in frame 2. then just have a
          text box
          "DocRocks" <webforumsuser@macromedia.com> wrote in message
          news:gfi7qt$ako$1@forums.macromedia.com...
          >I use DW8 for markup but a non-Adobe graphics program to create flash swf
          > files. That program allows simple graphic transitions, no scripting, and
          > creates an swf file that the Flash player can play.. I want to show a
          > "loading" message on the page as my swf file is downloading. Is there
          > another
          > way to do this outside of Flash, say in javascript or with css?
          >