Getting Started > What's new in Flash 5 ActionScript > Predefined objects

Predefined objects

You can use predefined objects to access and manipulate certain types of information. The following are a few of the predefined objects:

The Math object features a full complement of built-in mathematical constants and functions, such as E (Euler's constant), cos (Cosine), and atan (Arctangent).
The Date object allows you to get information about the date and time on whatever system is running the Flash Player.
The Sound object allows you to add sounds to a movie and control sounds in a movie as it plays. For example, you can adjust volume (setVolume), or balance (setPan).
The Mouse object allows you to hide the standard cursor so that you can use a custom cursor.
The MovieClip object allows you to control movie clips without using a wrapper action such as tellTarget. You can call a method such as play, loadMovie, or duplicateMovieClip from an instance name by using dot syntax (for example, myMovieClip.play()).