return 15;
}
function n(x:Number):Number {
return x * x;
}
function o():Void {
trace("o");
}
} // external script or Actions panel // script file
mvar = new D();
trace(mvar.k()); // 15
trace(mvar.n(7)); // 49
trace(mvar.o()); // "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 statement
intrinsic statement
intrinsic class className [extends superClass] [implements interfaceName [,
interfaceName...] ] {
//class definition here
}
Allows compile-time type checking of previously defined classes. Flash uses intrinsic class
declarations to enable compile-time type checking of built-in classes such as
and
. This keyword indicates to the compiler that no function implementation is
String
required, and that no bytecode should be generated for it.
The
keyword can also be used with variable and function declarations. Flash uses
intrinsic
this keyword to enable compile-time type checking for global functions and properties.
,
,
Array
Object
Statements
219
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?