Search Tutorials
The Actionscript: DateA memopad should show the current date, which is shown in the code below. You have to add +1 to the current month, since in Flash the count starts at 0. If you did not add +1 you would always be one month behind (which could be nice depending on the situation?!). stop(); //get the current date var today = new Date(); var currentDay = today.getDay(); var currentMonth = today.getMonth(); var currentDate = today.getDate(); var currentYear = today.getFullYear(); //you have to add +1 to the month, because counting starts at 0. dateTextField = (currentMonth + 1) + " - " + currentDate + " - " + currentYear;
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|