extends
381
Example
The following example uses
eval()
to determine the value of the expression
"
piece
"
+ x
.
Because the result is a variable name,
piece3
,
eval()
returns the value of the variable and assigns
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
className
The name of the class you are defining.
otherClassName
The name of the class on which
className
is based.
interfaceName
The name of the interface you are defining.
otherInterfaceName
The name of the interface on which
interfaceName
is based.
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
“Creating subclasses” on page 162
.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...