Previous Element | Next Element |
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. | |
Type | Integer | |
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 |
| |
Default Value | round | |
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. | |
Type | Float | |
Default Value | 3 | |
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 |
| |
Default Value | round | |
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 |
| |
Default Value | normal | |
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 |
| |
Default Value | false |
Child Elements
LineStyleParent Elements
CommonLineStylesExamples
Square to Circle Morph ExampleMorphShape Example
Previous Element | Next Element |