See also
getBounds (MovieClip.getBounds method)
(MovieClip.globalToLocal method)
method)
lineGradientStyle (MovieClip.lineGradientStyle
method)
public lineGradientStyle(fillType:String, colors:Array, alphas:Array,
ratios:Array, matrix:Object, [spreadMethod:String],
[interpolationMethod:String], [focalPointRatio:Number]) : Void
Specifies a line style that Flash uses for subsequent calls to the
methods until you call the
different parameters. You can call the
drawing a path to specify different styles for different line segments within a path.
Call
linestyle()
value of line style remains undefined.
Calls to
clear()
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 8
Parameters
- Valid values are
fillType:String
- An array of RGB hexadecimal color values that you use in the gradient (for
colors:Array
example, red is 0xFF0000, blue is 0x0000FF, and so on). You can specify up to 15 colors. For
each color, ensure that you specify a corresponding value in the
parameters.
- An array of alpha values for the corresponding colors in the
alphas:Array
valid values are 0 to 100. If the value is less than 0, Flash uses 0. If the value is greater than
100, Flash uses 100.
- An array of color distribution ratios; valid values are from 0 to 255. This
ratios:Array
value defines the percentage of the width where the color is sampled at 100%. Specify a value
for each value in the
,
localToGlobal (MovieClip.localToGlobal
method or the
lineStyle()
lineGradientStyle()
before you call line
GradientStyle()
set the line style back to undefined.
"linear"
parameter.
colors
,
globalToLocal
lineTo()
lineGradientStyle()
method in the middle of
to enable a stroke, otherwise the
or
.
"radial"
alphas
and
curveTo()
method with
and
ratios
array;
colors
MovieClip
881
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?