Valueof (Date.valueof Method); Error - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Returns
- An integer.
Number
Example
The following example creates a new
time. This is the universal time variation of the example used for the
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
- The number of milliseconds.
Number

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
constructor function. Typically, you
Error
code block that is then caught by a
try
You can also create a subclass of the Error class and throw instances of that subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
maryBirthday_date
throw
or
catch
finally
Date object defined in universal
constructor
new Date
a new Error object from within a
code block.
Error
357

Advertisement

Table of Contents
loading

Table of Contents