Description
Method; returns the number of milliseconds between midnight on January 1, 1970, universal
time, and the time specified in the parameters. This is a static method that is invoked through the
Date object constructor, not through a specific Date object. This method lets you create a Date
object that assumes universal time, whereas the Date constructor assumes local time.
Example
The following example creates a new
This is the universal time variation of the example used for the
garyBirthday_date = new Date(Date.UTC(1974, 7, 12));
default
Availability
Flash Player 6.
Usage
default: statements
Parameters
Any statements.
statements
Returns
Nothing.
Description
Statement; defines the default case for a
parameter of the
parameters that follow the
A
is not required to have a
switch
list. Using a
default
Example
In the following example, the expression A does not equal the expressions B or D so the statement
following the default keyword is run and the
switch ( A ) {
case B:
C;
break;
case D:
E;
break;
default:
trace ("no specific case was encountered");
}
See also
switch,
,
case
break
370
Chapter 12: ActionScript Dictionary
garyBirthday_date
action doesn't equal (using strict equality) any of the
switch
keywords for a given
case
default
action outside a
switch
Date object defined in universal time.
action. The statements execute if the
switch
switch
case. A
default
action is an error and the script doesn't compile.
action is sent to the Output panel.
trace()
constructor method:
new Date
expression
action.
case does not have to be last in the
expression
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?