Frames 

 No Frames

Previous Element
LineStyle

Next Element
LineStyles


LineStylePair

This is a container element for defining a pair of line styles in a MorphShape. The first style defined in a pair is the style associated with the source FromShape element. The second style defined in the pair is the style associated with the destination ToShape element. The player will interpolate between these two styles for all intermediate shapes. Line styles for MorphShapes cannot specify dashArray attributes.

Attributes

index Specifies the index of the current entry in the table. Informational attribute produced on decompilation. Not used on input.
TypeInteger
join This attribute defines the join type between two two consecutive line segments. Prior to Flash 8, all line joins were implemented as 'round' joins and this could not be altered. Flash 8 introduced two additional join types for line segments: 'miter' and 'bevel'. The join style is only applicable for line segments that are contiguous and that are not separated by a style change.
Values
round
This is the default pre-Flash 8 representation of the join style. Lines are always joined by a circular arc with the center at the intersection of the two segments.
miter
This defines a pointed join between two segments whose extension beyond the intersection point is determined by the magnitude of the angle between the two lines. A small acute angle will cause the miter join to extend further than a larger angle. To prevent the miter from extending too far for extremely small angles, a miter value can be specified that constrains the extension of the join and can convert the join to a bevel appearance.
bevel
This defines a bevelled join between two segments. The bevelled join is similar to the round join with the join drawn as a straight line between the two intersection points of the segments and join arc to create a straight-edged join.
Default Valueround
miter When a miter join is defined, this attribute allows the extent of the miter to be constrained. The value of this attribute defines the maximum magnitude of of the miter as a multiplier of the line width. When the maximum magnitude is reached the miter is terminated with a bevel join.
TypeFloat
Default Value3
cap This attributes defines the style of the end-point of a segment that is not joined to any other line segments. Prior to Flash 8, all line end-points were implemented with a 'round' cap style. Flash 8 introduced two additional line cap styles: 'none' and 'square'.
Values
round
This is the default pre-Flash 8 representation of the cap style. Lines are always capped by a circular arc extending in a semicircle (of radius width /2) beyond the endpoint location.
none
The cap of a line does not extend beyond the endpoint location and the cap is a straight line perpendicular to the direction of the segment.
square
The cap of a line extends by hald the line width beyond the endpoint location and the cap is a straight line perpendicular to the direction of the segment.
Default Valueround
constrainScale This attributes defines constraints that can be added to a style that modifies the width of the line style when scaled. Prior to Flash 8, altering the displayed scale of a shape symbol in Flash 8 caused the thickness of all line styles to scale by a corresponding amount. Hence a line of width 8 would be displayed with an onscreen width of 16 pixels when viewed at a scale of 200%. Flash 8 introduces new constraints that allows line styles to be constrained when scaling the symbol in one or both axes.
Values
normal
The width of the line style is scaled normally.
horizontal
The width of the line is not scaled if the shape is scaled horizontally.
vertical
The width of the line is not scaled if the shape is scaled vertically.
both
The width of the line is never scaled.
Default Valuenormal
hinting This attributes defines whether the Flash 8 player should attempt to modify the locations of drawing endpoints to ensure that the lines are rendered at their best. The Flash player uses a coordinate system that is much larger than that displayable one a normal screen. The Flash player transparently converts between the two coordinate systems and the result is normally a clear and consistent display. However, certain lines may appear to be less distinct than others when their endpoints are not aligned on full pixels. In Flash 8 this attribute was introduced to indicate that all segment endpoints should be adjusted so that they are placed on full pixels, regardless of line width.
Values
false
Segment end points are defined as specified by the user
true
Segment endpoints are adjusted so that they are located on full pixels.
Default Valuefalse

Child Elements

LineStyle

Parent Elements

CommonLineStyles

Examples

Square to Circle Morph Example
MorphShape Example

Previous Element
LineStyle

Next Element
LineStyles