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.

Returns<br />

String - A string representing the current time, formatted according to the currently defined<br />

locale.<br />

Example<br />

The following example uses the constructor to create a Date object based on the current time.<br />

It also uses the getLocaleTime() method to return the time of the current locale, as follows:<br />

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

trace(my_date.getLocaleTime());<br />

The following are sample return values that getLocaleTime() returns:<br />

6:10:44 PM<br />

18:10:44<br />

getMilliseconds (Date.getMilliseconds method)<br />

public getMilliseconds() : Number<br />

Returns the milliseconds (an integer from 0 to 999) of the specified Date object, according to<br />

local time. Local time is determined by the operating system on which Flash Player is<br />

running.<br />

Returns<br />

Number - An integer.<br />

Example<br />

The following example uses the constructor to create a Date object based on the current time<br />

<strong>and</strong> uses the getMilliseconds() method to return the milliseconds value from that object:<br />

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

trace(my_date.getMilliseconds());<br />

getMinutes (Date.getMinutes method)<br />

public getMinutes() : Number<br />

Returns the minutes (an integer from 0 to 59) of the specified Date object, according to local<br />

time. Local time is determined by the operating system on which Flash Player is running.<br />

Returns<br />

Number - An integer.<br />

Date 313

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

Saved successfully!

Ooh no, something went wrong!