1 Reply Latest reply on Nov 25, 2007 2:29 AM by atta707

    Show the time ?

    WestSide Level 1
      Hi,

      I want to show the current time as it shows in Windows in the lower right corner near the systray. Is there a way I can show the time to the user within a flex application? I would like the time to change in "real-time". In other words if the user was on a screen at 12:30pm and stayed there for two mins, he/she would see the time change without doing anything just as the system clock works in Windows.

      Any idea how I can do this?

      -Westside
        • 1. Re: Show the time ?
          atta707 Level 2
          The variable d in the line below holds the current system time:

          var d:Date = new Date();

          combine it with Timer class's time event that fires after a second and you will be showing the current time in any Flex control using Date object properties like hour, minute and second.

          ATTA