O'Reilly logo

ActionScript 2.0 Language Reference for Macromedia® Flash® 8 by Shimul Rahim, Robert L. Dixon, Jen deHaan, Francis Cheng

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Point (flash.geom.Point)

Object
  |
  +-flash.geom.Point

public class Point
extends Object

The Point class represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.

The following code creates a point at (0,0):

var myPoint:Point = new Point();

Availability: ActionScript 1.0; Flash Player 8

Property summary

ModifiersPropertyDescription
 length:NumberThe length of the line segment from (0,0) to this point.
 x:NumberThe horizontal coordinate of the point.
 y:NumberThe vertical coordinate of the point.

Properties inherited from class Object

constructor (Object.constructor property),
 __proto__ (Object.__proto__
property), prototype (Object.prototype property),
 __resolve (Object.__resolve ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required