Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Point (flash.geom.Point) > 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
String - A string.
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