Skip to main content
Known Participant
November 17, 2008
Question

moving code from class to stage

  • November 17, 2008
  • 1 reply
  • 298 views
I have this code in a class that retrieves todays date. How can I show the date in a textfield?
Or can I modify the code and just put it in my scene so I won't have to call the class?
This topic has been closed for replies.

1 reply

robdillon
Participating Frequently
November 18, 2008
You can put this on the timeline:

var someBirthday:Date = new Date();
trace(someBirthday.getDate());