EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Intrinsic Statement

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Statements 219
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
Array, Object,
and
String. This keyword indicates to the compiler that no function implementation is
required, and that no bytecode should be generated for it.
The
intrinsic keyword can also be used with variable and function declarations. Flash uses
this keyword to enable compile-time type checking for global functions and properties.

Table of Contents

Related product manuals