toString (Point.toString method)

public toString() : String

Returns a string that contains the values of the x and y coordinates. It has the form (x, y), so a Point at 23,17 would report "(x=23, y=17)".

Availability: ActionScript 1.0; Flash Player 8

Returns

String - A string.

Example

The following example creates a point and converts its values to a string in the format (x=x, y=y).

import flash.geom.Point;
var myPoint:Point = new Point(1, 2);
trace("myPoint: " + myPoint.toString()); // (x=1, y=2)

Flash CS3