MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 539

Components language reference
Table of Contents

Advertisement

The seekBarProgress_mc clip works without a fill_mc, much like the way a progress_mc clip
works in FLV Playback Custom UI Components. In other words, it is not masked and is
scaled horizontally. The exact dimensions of the bufferingBarProgress_mc at 100% is defined
by left and right margins within the bufferingBar_mc clip. These dimensions are, by default,
equal and based on the difference between the x (horizontal) positions of seekBar_mc and
seekBarProgress_mc. You can customize the dimensions with ActionScript in the seek bar
movie clip, as shown in the following example:
progressLeftMargin = 2;
progressRightMargin = 2;
progressY = 11;
fullnessLeftMargin = 2;
fullnessRightMargin = 2;
fullnessY = 11;
As with the FLV Playback Custom UI SeekBar component, it is possible to create a fullness
movie clip for the seek bar. If your seek bar does not need to scale, or if it does scale but does
not use 9-slice scaling, you could set up your progress_mc or fullness_mc using any of the
methods used for FLV Playback Custom UI components. For more information, see
"Progress
and fullness movie clips" on page
529.
Because the volume bar in the Flash 8 skins does not scale, it is constructed the same way as
the VolumeBar FLV Playback Custom UI component. For more information, see
"SeekBar
and VolumeBar components" on page
527. The exception is that the handle is implemented
differently. For more information on that, see the following section.
Handle
The SeekBar and VolumeBar handles are placed on the Stage next to the bar. By default, the
handle's left margin, right margin, and y-axis values are set by its position relative to the bar
movie clip. The left margin is set by the difference between the handle's x (horizontal) location
and the bar's x (horizontal) location, and the right margin is equal to the left margin. You can
customize these values through ActionScript in the SeekBar or VolumeBar movie clip. The
following example is the same ActionScript code that is used with the FLV Playback Custom
UI components:
handleLeftMargin = 2;
handleRightMargin = 2;
handleY = 11;
Beyond these properties, the handles are simple movie clips, set up the same way as they are in
the FLV Playback Custom UI components. Both have rectangle backgrounds with the
alpha
property set to 0. These are present only to increase the hit region and are not required.
Customizing the FLVPlayback component
537

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents