Beginner needing help with Date/Time object

Hey guys, this is my first post here.

I work as a graphic designer normally at my job, but yesterday I was given an assignment to write some ActionScript (2.0)… which is silly, because not only have i rarely ever touched it (beyond the use of ‘go to and play’), my boss doesn’t seem to understand that I have no idea what I’m doing.

The assignment I need to do is create an application where at exactly 3pm on the user’s desktop computer, the flash application closes. I am not in charge of the content of the application, only of the script needed to see that it is 3pm and then shut the window.

I know logically I just need to write something along the lines of “if 3pm, then close window” kind of thing. But I have no idea where to start and what variables to use.

Could anyone point me in the right direction? Even if they know of a small program that does something of a similar nature, who’s code I can peek at and try to understand?

Thanks :slight_smile: