add progress bar


As you might imagine, the number of images in the gallery movie dramatically increase the file size. When you're loading a large file, it's a good idea to provide some feedback for the user to let them know what's happening and how long they can expect it to take.

In this section we'll add a progress bar that appears while the gallery movie loads.

First, we need to set up the Loader for our gallery movie. In the timeless_blooms_site.fla file, select Frame 51 in the contents layer. Select the Loader component instance, and copy it to the clipboard.

With the component still selected, enter this code in the Actions panel to tell the component to disappear when the download completes:

Test the movie, (Windows) or (Mac). When the movie appears in the Flash Player window, click the Gallery button. Because the gallery file is loaded from your hard drive and not over the Internet, it may load too quickly for you to see the progress bar in action.

Choose View > Simulate Download, or press (Windows) or (Mac).

Close the Flash Player window.

All of our site sections are now filled with content. We're ready to prepare our files for upload to the Web.

Save your file.



    Creating a Web Site with Flash. Visual QuickProject Guide
    Creating a Web Site with Flash: Visual QuickProject Guide
    ISBN: 0321321251
    EAN: 2147483647
    Year: 2005
    Pages: 113
    Authors: David Morris

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net