Math.pointDistance()
Availability
Flash MX 2004.
Usage
Math.pointDistance(pt1, pt2)
Parameters
and
Specify the points between which distance is measured.
pt1
pt2
Returns
A floating-point value that represents the distance between the points.
Description
Method; computes the distance between two points.
Example
The following example stores the value for the distance between
and
in the
pt1
pt2
dist
variable:
var pt1 = {x:10, y:20}
var pt2 = {x:100, y:200}
var dist = fl.Math.pointDistance(pt1, pt2);
Math object
329
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?