} // error: class must implement all interface methods
// filename Ib.as
interface Ib
{
function o():Void;
}
class D implements Ia, Ib
{
function k():Number {return 15;}
function n(x:Number):Number {return x*x;}
function o():Void {trace("o");}
}
// external script or Actions panel
mvar = new D();
trace(D.k());
trace(D.n(7));
trace(D.o());
interface Ic extends Ia
{
function p():Void;
}
class E implements Ib, Ic
{
function k():Number {return 25;}
function n(x:Number):Number {return x+5;}
function o():Void {trace("o");}
function p():Void {trace("p");}
}
See also
,
class
extends
isFinite
Availability
Flash Player 5.
Usage
isFinite(expression)
Parameters
A Boolean value, variable, or other expression to be evaluated.
expression
Returns
A Boolean value.
Description
Function; evaluates
or negative infinity. The presence of infinity or negative infinity indicates a mathematical error
condition such as division by 0.
406
Chapter 12: ActionScript Dictionary
// 15
// 49
// "o"
,
implements
and returns
expression
if it is a finite number or
true
if it is infinity
false
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers