User Guide

54 ActionScript language elements
See also
addListener (MovieClipLoader.addListener method)
int function
int(value) : Number
Deprecated since Flash Player 5. This function was deprecated in favor of Math.round().
Converts a decimal number to an integer value by truncating the decimal value. This function
is equivalent to
Math.floor() if the value parameter is positive and Math.ceil() if the
value parameter is negative.
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
value:Number - A number to be rounded to an integer.
Returns
Number - The truncated integer value.
See also
round (Math.round method), floor (Math.floor method), ceil (Math.ceil method)
isFinite function
isFinite(expression:Object) : Boolean
Evaluates expression and returns true if it is a finite number or false if it is infinity or
negative infinity. The presence of infinity or negative infinity indicates a mathematical error
condition such as division by 0.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
expression:Object - A Boolean value, variable, or other expression to be evaluated.
Returns
Boolean - A Boolean value.