03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifiers Signature Description<br />

static sin(x:Number) :<br />

Number<br />

static sqrt(x:Number) :<br />

Number<br />

static tan(x:Number) :<br />

Number<br />

Methods inherited from class Object<br />

abs (Math.abs method)<br />

public static abs(x:Number) : Number<br />

Computes <strong>and</strong> returns an absolute value for the number specified by the parameter x.<br />

Parameters<br />

x:Number - A number.<br />

Returns<br />

Number - A number.<br />

Example<br />

The following example shows how Math.abs() returns the absolute value of a number <strong>and</strong><br />

does not affect the value of the x parameter (called num in this example):<br />

var num:Number = -12;<br />

var numAbsolute:Number = Math.abs(num);<br />

trace(num); // output: -12<br />

trace(numAbsolute); // output: 12<br />

acos (Math.acos method)<br />

public static acos(x:Number) : Number<br />

Computes <strong>and</strong> returns the sine of the specified<br />

angle in radians.<br />

Computes <strong>and</strong> returns the square root of the<br />

specified number.<br />

Computes <strong>and</strong> returns the tangent of the specified<br />

angle.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)<br />

Computes <strong>and</strong> returns the arc cosine of the number specified in the parameter x, in radians.<br />

Math 379

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!