MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 551

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

Setting line alpha
The third parameter in the
(alpha) level for the line. Transparency is a numerical value between 0 and 100, where 0
represents a completely transparent line, and 100 is completely opaque (visible).
Setting line pixel hinting (pixelHinting)
The pixel hinting for strokes parameter,
set on full pixels. The strokes are on full pixels for any stroke thickness, which means that you
never see a blurry vertical or horizontal line. You set the
Boolean value (
true
Setting line scale (noScale)
You set the
noScale
for the line. You can use a nonscaleable stroke in horizontal mode or vertical mode, scale the
line (normal), or use no scaling.
It is useful to enable scaling for user interface elements when users zoom in, but not if a
movie clip is only scaled vertically or horizontally.
You can use one of four different modes to specify when scaling should occur and when it
shouldn't. The following are the possible values for the
Always scale the thickness (default).
normal
Do not scale the thickness if the object is scaled vertically.
vertical
Do not scale the thickness if the object is scaled horizontally.
horizontal
Never scale the thickness.
none
Setting line caps (capsStyle) and joints (jointStyle)
You can set three types of caps styles for the
(default)
round
square
none
The following procedure demonstrates the differences between each of the three caps styles. A
visual representation of each cap style appears on the Stage when you test the SWF file.
lineStyle()
pixelHinting
or
).
false
parameter by using a String value, which lets you specify a scaling mode
method,
, lets you control the transparency
alpha
, means that line and curve anchors are
pixelHinting
noScale
parameter:
capsStyle
parameter to a
property:
Drawing with ActionScript
551

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents