Int Function; Isfinite Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
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

Table of Contents