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

Example

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

See also

polar (Point.polar method)


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