Showing Current Date and Time in Flex
There is no component to display the current time and date in Flex.
we can achieve that by updating the time every seconds using Timer control.
Download Source
For that i have created new Label component that shows the current time and date(using new Date()) ,to make it dynamic i have implemented Timer function that will invoke every second and update the content of that label .
i have defined timer to invoke method every 1000 milliseconds and infinite number of times,so it will invoke the timer function for every one second update the label with current time.
By changing this 1000 milliseconds to other less values you can get more accurate time.
3 comments:
the link isn't the source is a binary file.
No ,The source in .rar (format only.
You can extract it by using Winrar utility
Thanks! This really worked easily for me!
Post a Comment