MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X User Manual Page 18

  • Download
  • Add to my manuals
  • Print
  • Page
    / 21
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 17
18
Adobe Flash CS3 Classroom in a Book
Lesson 10 revisits the preloader graphic students
created in Lesson 2 as students learn how to script the
preloader and load a separate SWF file.
Working with preloaders
Preloaders entertain viewers and keep them informed
while the primary content of a website is loading.
Because website visitors are easily distracted and may
click away from a site if nothing seems to be happen-
ing, many complex sites use preloaders. A preloader
may be as simple as a progress bar, or it may be related
to the content that is loading. Ask students to think of
preloaders they’ve seen or preloaders they might use
for different kinds of sites. (To find examples, try visit-
ing the sites of graphic designers or sites that feature
movie files.)
Previewing a preloader
A preloader only plays until the main content has
loaded, so if you’re running it on the computer that
contains the content, the preloader will disappear
quickly. To see what viewers will actually see, simulate a
download.
In simulating the downloading speed, Flash uses esti-
mates of typical Internet performance, not the exact
modem speed. For example, if you select to simulate a
modem speed of 28.8 Kbps, Flash sets the actual rate to
2.3 Kbps to reflect typical Internet performance. The
profiler also compensates for the added compression
support for SWF files, which reduces the file size and
improves streaming performance.
To test a movie:
1. Choose Control > Test Movie.
2. In the preview window, choose View > Download
Settings.
3. Select a download speed to determine the streaming
rate that Flash simulates. When viewing the SWF file,
choose View > Bandwidth Profiler to see a graph of the
downloading performance.
• The left side of the profiler displays information
about the document, its settings, its state, and streams,
if any are included in the document.
• The right section of the profiler shows the Timeline
header and graph. In the graph, each bar represents an
individual frame of the document. The size of the bar
corresponds to that frame’s size in bytes. The red line
beneath the Timeline header indicates whether a given
frame streams in real time with the current modem
speed set in the Control menu. If a bar extends above
the red line, the document must wait for that frame to
load.
4 Choose View > Simulate Download to turn stream-
ing off or on. If you turn streaming on, the document
starts over and simulates a web connection.
Optimizing Flash documents
As your document file size increases, so does its down-
load time and playback speed. You can take several
steps to prepare your document for optimal playback.
As part of the publishing process, Flash automatically
performs some optimization on documents. Before
exporting a document, you can optimize it further by
using various strategies to reduce the file size. You can
also compress a SWF file as you publish it. As you make
changes, test your document by running it on a variety
of computers, operating systems, and Internet connec-
tions.
• Use symbols, animated or otherwise, for every ele-
ment that appears more than once.
• Use tweened animations whenever possible when
creating animation sequences. Tweened animations use
less file space than a series of keyframes.
• Use movie clips instead of graphic symbols for anima-
tion sequences.
• Limit the area of change in each keyframe; make the
action take place in as small an area as possible.
• Avoid animating bitmap elements; use bitmap images
as background or static elements.
• Use mp3, the smallest sound format, whenever pos-
sible.
• Group elements.
Lesson 10: Loading and Optimizing
Flash Content
LESSON 10
Page view 17
1 2 ... 13 14 15 16 17 18 19 20 21

Comments to this Manuals

No comments