MovieClip
881
See also
getBounds (MovieClip.getBounds method)
,
globalToLocal
(MovieClip.globalToLocal method)
,
localToGlobal (MovieClip.localToGlobal
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
lineTo()
and
curveTo()
methods until you call the
lineStyle()
method or the
lineGradientStyle()
method with
different parameters. You can call the
lineGradientStyle()
method in the middle of
drawing a path to specify different styles for different line segments within a path.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Player 8
Parameters
fillType
:String
- Valid values are
"linear"
or
"radial"
.
colors
:Array
- An array of RGB hexadecimal color values that you use in the gradient (for
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
alphas
and
ratios
parameters.
alphas
:Array
- An array of alpha values for the corresponding colors in the
colors
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.
ratios
:Array
- An array of color distribution ratios; valid values are from 0 to 255. This
value defines the percentage of the width where the color is sampled at 100%. Specify a value
for each value in the
colors
parameter.
NO
TE
Call
linestyle()
before you call line
GradientStyle()
to enable a stroke, otherwise the
value of line style remains undefined.
NO
TE
Calls to
clear()
set the line style back to undefined.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...