Setloadcallback (Locale.setloadcallback Method); Math - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Parameters
- A String representing a language code.
langCode:String

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)
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
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)
410
ActionScript classes
-
or
Math.constant
degrees
is the same as
. In ActionScript, constants
) as the radian parameter.
Math.sin(.7854)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents