Flash Trace Tips and LineStyle () changes

Source: Internet
Author: User
Tags range valid
Skills

Flash Trace Tips

Author: egoldy Type: Reprint Source: Egoldy Flashblog

Trace Multiple variables

var x=y=z=myparm;
file://Normal Trace method
Trace ("x,y,z=", "+x+", "+y+", "+z+");
file://Skill Method
Trace ("x,y,z=" +[x,y,z]);

The results are the same. Save time and effort. :)

LineStyle () Change

Author: zjs35 Type: Reprint Source: ZJS35 Blog

Flash8 adds a lot of parameters
Pixelhinting:boolean-added in Flash Player 8. A Boolean value that specifies whether to prompt the stroke to take the full pixel. This value affects both the position of the curve anchor and the line stroke size itself. If no value is indicated, Flash Player does not use pixel hints.
Noscale:string-added in Flash Player 8. A string that specifies how strokes are scaled. Valid values are as follows:
' Normal ' always scales the weight (the default value).
' None ' never scales the weight.
Vertical If you only scale the object vertically, the weight is not scaled.
Horizontal If you only scale the object horizontally, the weight is not scaled.
Capsstyle:string-added in Flash Player 8. A string that specifies the end type of the line endpoint. Valid values are: "Round", "Square" and "none". If no value is indicated, Flash uses the fillet endpoint.

Jointstyle:string-added in Flash Player 8. A string that specifies the type of connection appearance used for the corner. Valid values are: "Round", "miter", and "bevel". If no value is indicated, Flash uses a circular connection. Note that for Jointstyle set to "Miter", you can use the Miterlimit parameter to limit the length of the sharp corners.
Miterlimit:number-added in Flash Player 8. A number that indicates the limit of the sharp corner cut. Valid values range from 1 to 255 (values that exceed this range are rounded to 1 or 255). This value can only be used in cases where Jointstyle is set to "miter". If you do not specify a value, Flash uses 3. The Miterlimit value represents the length of the binding point at which the outward-extending sharp angle exceeds the intersection of the corners. This value represents the factor for line thickness. For example, when the miterlimit factor is 2.5 and the thickness is 10 pixels, the sharp corners are cut off at 25 pixels.
Note that for a given miterlimit value, there is a specific maximum angle that can be cut off. The following table lists some of the examples:
Value of Miterlimit: Less than this angle will be cut:
1.414 90 degrees.
2 60 degrees.
4 30 degrees.
8 15 degrees.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.