Skip to Content
ActionScript for Flash MX: The Definitive Guide, Second Edition
book

ActionScript for Flash MX: The Definitive Guide, Second Edition

by Colin Moock
December 2002
Intermediate to advanced content levelIntermediate to advanced
1088 pages
192h 4m
English
O'Reilly Media, Inc.
Content preview from ActionScript for Flash MX: The Definitive Guide, Second Edition
Date.setMonth() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
514
|
ActionScript Language Reference
Arguments
minutes An integer from 0 to 59, representing the new minutes of the hour of date.
Values above 59 or below 0 are carried over to the hours of
date.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970.
See Also
Date.getMinutes()
Date.setMonth() Method
assign the month of the year
Flash 5
date.setMonth(month)
Arguments
month An integer from 0 (January) to 11 (December), not from 1 to 12, representing
the new month of the year of
date. Values above 11 or below 0 are carried
over to the year of
date.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970.
Usage
Be careful not to assume that 1 is January! Months start at 0, not 1.
See Also
Date.getMonth()
Date.setSeconds() Method
assign the seconds of a date
Flash 5
date.setSeconds(seconds)
Arguments
seconds An integer from 0 to 59, representing the new seconds of the minute of date.
Values above 59 or below 0 are carried over to the minutes of
date.
Returns
An integer representing the number of milliseconds between the new date and midnight,
January 1, 1970.
See Also
Date.getSeconds()
Date.setTime() Method
assign a new date based on the number of milliseconds between January 1, 1970 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ActionScript 3.0 Game Programming University, Second Edition

ActionScript 3.0 Game Programming University, Second Edition

Gary Rosenzweig
ActionScript 3.0 Bible

ActionScript 3.0 Bible

Roger Braunstein
ActionScript 2.0 Language Reference for Macromedia® Flash® 8

ActionScript 2.0 Language Reference for Macromedia® Flash® 8

Francis Cheng, Jen deHaan, Robert L. Dixon, Shimul Rahim

Publisher Resources

ISBN: 059600396XCatalog PageErrata