MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 659

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

Advertisement

super
Availability
Flash Player 6.
Usage
super.method([arg1, ..., argN])
super([arg1, ..., argN])
Parameters
The method to invoke in the superclass.
method
Optional parameters that are passed to the superclass version of the method (syntax 1) or
arg1
to the constructor function of the superclass (syntax 2).
Returns
Both forms invoke a function. The function may return any value.
Description
Operator: the first syntax style may be used within the body of an object method to invoke the
superclass version of a method, and can optionally pass parameters (
superclass method. This is useful for creating subclass methods that add additional behavior to
superclass methods, but also invoke the superclass methods to perform their original behavior.
The second syntax style may be used within the body of a constructor function to invoke the
superclass version of the constructor function and may optionally pass it parameters. This is
useful for creating a subclass that performs additional initialization, but also invokes the
superclass constructor to perform superclass initialization.
switch
Availability
Flash Player 4.
Usage
switch (expression){
caseClause:
[defaultClause:]
}
Parameters
Any expression.
expression
A
caseClause
execute if the expression matches the switch
defaultClause
expressions match the switch
Returns
Nothing.
keyword followed by an expression, a colon, and a group of statements to
case
A
keyword followed by statements to execute if none of the case
default
expression
parameter using strict equality (
expression
parameter strict equality (
...
) to the
arg1
argN
===
).
===
switch
).
659

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?

Questions and answers

Table of Contents