03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

jointStyle:String - Added in Flash Player 8. A string that specifies the type of joint<br />

appearance used at angles. Valid values are: "round", "miter", <strong>and</strong> "bevel". If a value is not<br />

indicated, Flash uses round joints.<br />

For example, the following illustrations show the different capsStyle settings. For each<br />

setting, the illustration shows an angled blue line with a thickness of 30 (for which the<br />

jointStyle applies), <strong>and</strong> a superimposed angled black line with a thickness of 1 (for which<br />

no jointStyle applies):<br />

Notice that for jointStyle set to "miter", you can limit the length of the miter point by<br />

using the miterLimit parameter.<br />

miterLimit:Number - Added in Flash Player 8. A number that indicates the limit at which a<br />

miter is cut off. Valid values range from 1 to 255 (<strong>and</strong> values outside of that range are rounded<br />

to 1 or 255). This value is only used if the jointStyle is set to "miter". If a value is not<br />

indicated, Flash uses 3. The miterLimit value represents the length that a miter can extend<br />

beyond the point at which the lines meet to form a joint. The value expresses a factor of the<br />

line thickness. For example, with a miterLimit factor of 2.5 <strong>and</strong> a thickness of 10 pixels,<br />

the miter is cut off at 25 pixels.<br />

For example, consider the following angled lines, each drawn with a thickness of 20, but<br />

with miterLimit set to 1, 2, <strong>and</strong> 4. Superimposed are black reference lines showing the<br />

meeting points of the joints:<br />

Notice that for a given miterLimit value, there is a specific maximum angle for which the<br />

miter is cut off. The following table lists some examples:<br />

Value of miterLimit<br />

value:<br />

Angles smaller than<br />

this are cut off:<br />

1.414 90 degrees<br />

2 60 degrees<br />

MovieClip 899

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!