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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Returns<br />

Number - An integer.<br />

Example<br />

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

Date.setUTCHours() to change the time to 8:30 a.m., <strong>and</strong> changes the time again to 5:30:47<br />

p.m.:<br />

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

my_date.setUTCHours(8,30);<br />

trace(my_date.getUTCHours()); // output: 8<br />

trace(my_date.getUTCMinutes()); // output: 30<br />

my_date.setUTCHours(17,30,47);<br />

trace(my_date.getUTCHours()); // output: 17<br />

trace(my_date.getUTCMinutes()); // output: 30<br />

trace(my_date.getUTCSeconds()); // output: 47<br />

setUTCMilliseconds (Date.setUTCMilliseconds<br />

method)<br />

public setUTCMilliseconds(millisecond:Number) : Number<br />

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

in milliseconds.<br />

Parameters<br />

millisecond:Number - An integer from 0 to 999.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example initially creates a new Date object, setting the date to 8:30 a.m. on<br />

May 15, 2004 with the milliseconds value set to 250, <strong>and</strong> uses Date.setUTCMilliseconds()<br />

to change the milliseconds value to 575:<br />

var my_date:Date = new Date(2004,4,15,8,30,0,250);<br />

trace(my_date.getUTCMilliseconds()); // output: 250<br />

my_date.setUTCMilliseconds(575);<br />

trace(my_date.getUTCMilliseconds()); // output: 575<br />

328 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!