User Guide

410 ActionScript classes
Parameters
langCode:String - A String representing a language code.
setLoadCallback (Locale.setLoadCallback method)
public static setLoadCallback(loadCallback:Function)
Set the callback function that will be called after the xml file is loaded.
Availability: ActionScript 2.0; Flash Lite 2.0
Parameters
loadCallback:Function -
Math
Object
|
+-Math
public class Math
extends Object
The Math class is a top-level class whose methods and properties you can use without using a
constructor.
Use the methods and properties of this class to access and manipulate mathematical constants
and functions. All the properties and methods of the Math class are static and must be called
using the syntax
Math.method(parameter) or Math.constant. In ActionScript, constants
are defined with the maximum precision of double-precision IEEE-754 floating-point
numbers.
Several Math class methods use the measure of an angle in radians as a parameter.You can use
the following equation to calculate radian values before calling the method and then provide
the calculated value as the parameter, or you can provide the entire right side of the equation
(with the angle's measure in degrees in place of
degrees) as the radian parameter.
To calculate a radian value, use the following formula:
radians = degrees * Math.PI/180
The following is an example of passing the equation as a parameter to calculate the sine of a
45° angle:
Math.sin(45 * Math.PI/180) is the same as Math.sin(.7854)