03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

month:Number [optional] - An integer from 0 (January) to 11 (December). If you omit this<br />

parameter, the month field of the specified Date object will not be modified.<br />

date:Number [optional] - An integer from 1 to 31. If you omit this parameter, the date field<br />

of the specified Date object will not be modified.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example initially creates a new Date object with today's date, uses<br />

Date.setUTCFullYear() to change the year value to 2001, <strong>and</strong> changes the date to May 25,<br />

1995:<br />

var my_date:Date = new Date();<br />

my_date.setUTCFullYear(2001);<br />

trace(my_date.getUTCFullYear()); // output: 2001<br />

my_date.setUTCFullYear(1995, 4, 25);<br />

trace(my_date.getUTCFullYear()); // output: 1995<br />

trace(my_date.getUTCMonth()); // output: 4<br />

trace(my_date.getUTCDate()); // output: 25<br />

See also<br />

getUTCDay (Date.getUTCDay method), getDay (Date.getDay method)<br />

setUTCHours (Date.setUTCHours method)<br />

public setUTCHours(hour:Number, [minute:Number], [second:Number],<br />

[millisecond:Number]) : Number<br />

Sets the hour for the specified Date object in universal time <strong>and</strong> returns the new time in<br />

milliseconds.<br />

Parameters<br />

hour:Number - A number; an integer from 0 (midnight) to 23 (11 p.m.).<br />

minute:Number [optional] - A number; an integer from 0 to 59. If you omit this parameter,<br />

the minutes field of the specified Date object will not be modified.<br />

second:Number [optional] - A number; an integer from 0 to 59. If you omit this parameter,<br />

the seconds field of the specified Date object will not be modified.<br />

millisecond:Number [optional] - A number; an integer from 0 to 999. If you omit this<br />

parameter, the milliseconds field of the specified Date object will not be modified.<br />

Date 327

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!