MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 381

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Example
The following example uses
Because the result is a variable name,
it to
:
y
piece3 = "dangerous";
x = 3;
y = eval("piece" + x);
trace(y);
// Output: dangerous
See also
Array class
extends
Availability
Flash Player 6.
Usage
class className extends otherClassName {}
interface interfaceName extends otherInterfaceName {}
Note: To use this keyword, you must specify ActionScript 2.0 and Flash Player 6 or later in the Flash
tab of your FLA file's Publish Settings dialog box. This keyword is supported only when used in
external script files, not in scripts written in the Actions panel.
Parameters
The name of the class you are defining.
className
otherClassName
interfaceName
otherInterfaceName
Description
Keyword; defines a class or interface that is a subclass of another class or interface; the latter is the
superclass. The subclass inherits all the methods, properties, functions, and so on that are defined
in the superclass.
For more information, see
to determine the value of the expression
eval()
piece3
The name of the class on which
The name of the interface you are defining.
The name of the interface on which
"Creating subclasses" on page
,
returns the value of the variable and assigns
eval()
is based.
className
interfaceName
162.
.
"piece" + x
is based.
extends
381

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents