User Guide
412 ActionScript classes
Method summary
Modifiers Signature Description
static abs(x:Number) : Number Computes and returns an absolute value for
the number specified by the parameter x.
static acos(x:Number) : Number Computes and returns the arc cosine of the
number specified in the parameter x, in
radians.
static asin(x:Number) : Number Computes and returns the arc sine for the
number specified in the parameter x, in
radians.
static atan(tangent:Number) : Number Computes and returns the value, in radians, of
the angle whose tangent is specified in the
parameter tangent.
static atan2(y:Number, x:Number) :
Number
Computes and returns the angle of the point
y/x in radians, when measured
counterclockwise from a circle's x axis (where
0,0 represents the center of the circle).
static ceil(x:Number) : Number Returns the ceiling of the specified number or
expression.
static cos(x:Number) : Number Computes and returns the cosine of the
specified angle in radians.
static exp(x:Number) : Number Returns the value of the base of the natural
logarithm (e), to the power of the exponent
specified in the parameter x.
static floor(x:Number) : Number Returns the floor of the number or expression
specified in the parameter x.
static log(x:Number) : Number Returns the natural logarithm of parameter x.
static max(x:Number, y:Number) :
Number
Evaluates x and y and returns the larger value.
static min(x:Number, y:Number) :
Number
Evaluates x and y and returns the smaller
value.
static pow(x:Number, y:Number) :
Number
Computes and returns x to the power of y.
static random() : Number Returns a pseudo-random number n, where 0
<= n < 1.
static round(x:Number) : Number Rounds the value of the parameter x up or
down to the nearest integer and returns the
value.