Develop PHP Website for Learning Web Design Free Online
  Home   |   Forums   |   DevCMS
  Join   |   Log In
 
   

Actionscript 3.0 Tutorials - Learn Actionscript 3.0

Tutor at Develop PHP
Defining Date() Parameters
By: Adam      Created: Jul 07, 2009      Views: 1571 Tweet This Page  Post page to Facebook  Post page to Facebook

We can also send parameters to the Date() object in ActionScript 3.0 by placing values into the parenthesis. This gives us a method to set times and dates, or augment the value of a Date() object we have. We can run operations to see if dates match, are less than or greater than, and many other operations that our ActionScript 3.0 projects call for.

Defining Parameters for the Date() object
In the following example we create three different Date() objects to hold separate values defined by our parameters
Learn HTML
var date1:Date = new Date();
trace(date1); // now
    
var date2:Date = new Date(2004, 11, 25);
trace(date2); // Christmas 2004
    
var date3:Date = new Date(2002, 5, 6, 9, 30, 15, 0);
trace(date3); // Thu Jun 6 09:30:15 GMT-0400 2002

Develop PHP browser display window
Tue Aug 4 08:41:15 GMT-0400 2009
Sat Dec 25 00:00:00 GMT-0500 2004
Thu Jun 6 09:30:15 GMT-0400 2002

                                   Creating Timers for Time Interval Based Events


Comment on Defining Date() Parameters




Search Tags:
Defining   ·  Date()   ·  Parameters   ·  
 
 
Arbitrary Links and Archives
Home
Active Forums
Members
SIte News
Link To Us
Gear
2009 Forum Archive
Programming Courses
Learn HTML
Learn CSS
Learn PHP
Learn MySQL
Learn Javascript
Learn jQuery
Learn ActionScript 3.0
Learn Java
Learn XML
DevelopPHP Requires Flash Player
Get Adobe Flash player
___________________________________________

Terms of Use  •  Privacy  •  Admin Notes

©2010 developphp.com   |   Powered By FlashBuildingHolder