EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 450

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
450 Chapter 12: ActionScript Dictionary
Math.cos()
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and may not be as accurate as the non-emulated math functions supported by
Flash Player 5.
Usage
Math.cos(x)
Parameters
x
An angle measured in radians.
Returns
A number.
Description
Method; returns the cosine (a value from -1.0 to 1.0) of the angle specified by the parameter x.
The angle
x must be specified in radians. Use the information outlined in the Math class entry to
calculate a radian.
Math.E
Availability
Flash Player 5. In Flash Player 4, the methods and properties of the Math class are emulated using
approximations and may not be as accurate as the non-emulated math functions supported by
Flash Player 5.
Usage
Math.E
Parameters
None.
Returns
Nothing.
Description
Constant; a mathematical constant for the base of natural logarithms, expressed as e. The
approximate value of e is 2.71828.

Table of Contents

Related product manuals