MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1010

Actionscript 2.0 language reference
Table of Contents

Advertisement

Properties inherited from class Object
constructor (Object.constructor
property),
prototype (Object.prototype
(Object.__resolve property)
Constructor summary
Signature
Point(x:Number,
y:Number)
Method summary
Modifiers
Signature
add(v:Point) : Point
clone() : Point
static
distance(pt1:Point,
pt2:Point) : Number
equals(toCompare:Obj
ect) : Boolean
static
interpolate(pt1:Poin
t, pt2:Point,
f:Number) : Point
normalize(length:Num
ber) : Void
offset(dx:Number,
dy:Number) : Void
static
polar(len:Number,
angle:Number) :
Point
subtract(v:Point) :
Point
toString() : String
1010
ActionScript classes
property),
Description
Creates a new point.
Description
Adds the coordinates of another point to the
coordinates of this point to create a new point.
Creates a copy of this Point object.
Returns the distance between pt1 and pt2.
Determines whether two points are equal.
Determines a point between two specified points.
Scales the line segment between (0,0) and the
current point to a set length.
Offsets the Point object by the specified amount.
Converts a pair of polar coordinates to a cartesian
point coordinate.
Subtracts the coordinates of another point from the
coordinates of this point to create a new point.
Returns a string that contains the values of the x and y
coordinates.
__proto__ (Object.__proto__
property),
__resolve

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents