Int Function; Isfinite Function - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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
if the
parameter is positive and
if the
Math.floor()
value
Math.ceil()
parameter is negative.
value
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
- A number to be rounded to an integer.
value:Number
Returns
- The truncated integer value.
Number
See also
,
,
round (Math.round method)
floor (Math.floor method)
ceil (Math.ceil method)

isFinite function

isFinite(expression:Object) : Boolean
Evaluates
and returns
if it is a finite number or
if it is infinity or
expression
true
false
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
- A Boolean value, variable, or other expression to be evaluated.
expression:Object
Returns
- A Boolean value.
Boolean
54
ActionScript language elements

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

This manual is also suitable for:

Flash lite 2

Table of Contents