User Guide
MovieClip 921
A common use for setting scale9Grid is to set up a component in which edge lines retain the
same width when the component is scaled.
In the Macromedia Flash authoring environment, you can enable guides for 9-slice scaling for
a movie clip symbol in a library. This lets you graphically determine the
scale9grid for the
object. When you set 9-slice scaling for a symbol, the
scale9grid property of any instance of
that symbol is automatically set. For a symbol that has 9-slice scaling enabled, when you
create the SWF file any curve that spans more than one region of the 9-slice scaling grid is
divided into separate curves for each region of the grid. For instance, consider a curve in a
movie clip symbol for which 9-slice scaling is enabled and the same curve in a movie clip
symbol for which 9-slice scaling is not enabled:
When Flash creates the SWF file, the curve in first movie clip illustrated is divided into three
curves. This is not the case for the second movie clip, for which the 9-slice scaling is not
enabled. Even if you set
scale9Grid for the second movie clip to a rectangle that matches the
scale9Grid of the first movie clip, when you scale these movie clips the results differ because
of the way Flash divides the curves in the first movie clip:
Availability: ActionScript 1.0; Flash Player 8
Scaled to 25%:
Stretched horizontally
150%:
Symbol with 9-slice
scaling enabled:
Symbol without 9-
slice scaling enabled:
Symbol with 9-slice
scaling enabled
Symbol without 9-
slice scaling enabled