User Guide
534 FLVPlayback Component (Flash Professional Only)
The initial ActionScript code defines the minimum width and height for the skin. The Select
Skin dialog box shows these values and they are used at runtime to prevent the skin from
scaling below its minimum size. If you do not want to specify a minimum size, leave it as
undefined or less than or equal to zero.
// minimum width and height of video recommended to use this skin,
// leave as undefined or <= 0 if there is no minimum
layout_mc.minWidth = 270;
layout_mc.minHeight = 60;
Each placeholder can have the following properties applied to it:
If both the
anchorLeft and anchorRight properties are true, the control will be scaled
horizontally at runtime. If both the
anchorTop and anchorBottom properties are true, the
control will be scaled vertically at runtime.
To see the effects of these properties, see how they are used in the Flash 8 skins. The
BufferingBar and SeekBar controls are the only ones that scale, and they are laid on top of one
another and have both the
anchorLeft and anchorRight properties set to true. All controls
to the left of the BufferingBar and SeekBar have
anchorLeft set to true, and all controls to
their right have
anchorRight set to true. All controls have anchorBottom set to true.
You can try editing the
layout_mc movie clip to make a skin where the controls sit at the top
rather than at the bottom. You simply need to move the controls to the top, relative to
video_mc, and set anchorTop equal to true for all controls.
Property Description
mc:MovieClip
The instance on the Stage for this control. If not set,
layout_mc.foo_mc.mc would default to foo_mc.
anchorLeft:Boolean
Positions the control relative to the left side of the
FLVPlayback instance. Defaults to
true unless
anchorRight is explicitly set to true, and then it defaults to
false
anchorRight:Boolean
Positions the control relative to the right side of the
FLVPlayback instance. Defaults to
false.
anchorBottom:Boolean
Positions the control relative to the bottom of the
FLVPlayback instance. Defaults to
true, unless anchorTop
is explicitly set to
true, and then it defaults to false.
anchorTop:Boolean
Positions the control relative to the top of the
FLVPlayback instance. Defaults to
false.