Progress and fullness movie clips
The SeekBar component has a progress movie clip and the VolumeBar has a fullness movie clip,
but in practice, any SeekBar or VolumeBar can have either, neither, or both of these movie
clips. They are structurally the same and behave similarly but track different values. A progress
movie clip fills up as the FLV file downloads (which is useful for an HTTP download only,
because it is always full if streaming from FCS) and a fullness movie clip fills up as the handle
moves from left to right.
The FLVPlayback component finds these movie clip instances by looking for a specific
instance name, so your progress movie clip instance must have your bar movie clip as its
parent and have the instance name progress_mc. The fullness movie clip instance must have
the instance name fullness_mc.
You can set the progress and fullness movie clips with or without the fill_mc movie clip
instance nested inside. The VolumeBar fullness_mc movie clip shows the method with the
fill_mc movie clip, and the SeekBar progress_mc movie clip shows the method without the
fill_mc movie clip.
The method with the fill_mc movie clip nested inside is useful when you want a fill that
cannot be scaled without distorting the appearance.
In the VolumeBar fullness_mc movie clip, the nested fill_mc movie clip instance is masked.
You can either mask it when you create the movie clip, or a mask will be created dynamically
at runtime. If you mask it with a movie clip, name the instance mask_mc and set it up so that
fill_mc appears as it would when percentage is 100%. If you do not mask fill_mc, the
dynamically created mask will be rectangular and the same size as fill_mc at 100%.
The fill_mc movie clip is revealed with the mask in one of two ways, depending on whether
fill_mc.slideReveal is
If fill_mc.slideReveal is
mask. At 0%, it is all the way to the left so, that none of it shows through the mask. As the
percentage increases, it moves to the right, until at 100%, it is back where it was created on
the Stage.
If fill_mc.slideReveal is
from left to right to reveal more of fill_mc. When it is at 0%, the mask will be scaled to 05
horizontally, and as the percentage increases, the
all of fill_mc. This is not necessarily
when it was created.
The method without fill_mc is simpler than the method with fill_mc, but it distorts the fill
horizontally. If you do not that distortion, you must use fill_mc. The SeekBar progress_mc
illustrates this method.
or
.
true
false
, then fill_mc is moved from left to right to expose it through the
true
or undefined (the default behavior), the mask will be resized
false
_xscale
increases until, at 100%, it reveals
_xscale
= 100 because mask_mc might have been scaled
Customizing the FLVPlayback component
529
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?