Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Point (flash.geom.Point) > length (Point.length property) | |||
public length : Number
The length of the line segment from (0,0) to this point.
Availability: ActionScript 1.0; Flash Player 8
The following example creates a Point object, myPoint, and determines the length of a line from (0, 0) to that Point.
import flash.geom.Point; var myPoint:Point = new Point(3,4); trace(myPoint.length); // 5
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002599.html