Buffering bar

The buffering bar has two movie clips: bufferingBar_mc and bufferingBarFill_mc. Each clip's position on the Stage relative to the other clip is important because this relative positioning is maintained. The buffering bar uses two separate clips because the component scales bufferingBar_mc but not bufferingBarFill_mc.

The bufferingBar_mc clip has 9-slice scaling applied to it, so the borders won't distort when it scales. The bufferingBarFill_mc clip is extremely wide, so that it will always be wide enough without needing to be scaled. It is automatically masked at runtime to show only the portion above the stretched bufferingBar_mc. By default, the exact dimensions of the mask will maintain an equal margin on the left and right within the bufferingBar_mc, based on the difference between the x (horizontal) positions of bufferingBar_mc and bufferingBarFill_mc. You can customize the positioning with ActionScript code.

If your buffering bar does not need to scale or does not use 9-slice scaling, you could set it up like the FLV Playback Custom UI BufferingBar component. For more information, see BufferingBar component.

The buffering bar has the following additional property:

Property

Description

fill_mc:MovieClip

Specifies the instance name of the buffering bar fill. Defaults to bufferingBarFill_mc.


Flash CS3