User Guide
Error 357
Returns
Number - An integer.
Example
The following example creates a new
maryBirthday_date Date object defined in universal
time. This is the universal time variation of the example used for the
new Date constructor
method. The output is in local time and varies accordingly. For Pacific Daylight Time the
output is seven hours earlier than UTC: Sun Aug 11 17:00:00 GMT-0700 1974.
var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12));
trace(maryBirthday_date);
valueOf (Date.valueOf method)
public valueOf() : Number
Returns the number of milliseconds since midnight January 1, 1970, universal time, for this
Date.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
Number - The number of milliseconds.
Error
Object
|
+-Error
public class Error
extends Object
Contains information about an error that occurred in a script. You create an Error object
using the
Error constructor function. Typically, you throw a new Error object from within a
try code block that is then caught by a catch or finally code block.
You can also create a subclass of the Error class and throw instances of that subclass.
Availability: ActionScript 1.0; Flash Lite 2.0