rss
twitter

Wednesday, February 04, 2009

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.



Bookmark and Share

3 comments:

Anonymous,  August 21, 2009 at 12:32 PM  

the link isn't the source is a binary file.

Gnanz August 23, 2009 at 10:31 PM  

No ,The source in .rar (format only.
You can extract it by using Winrar utility

Anonymous,  January 18, 2010 at 10:49 AM  

Thanks! This really worked easily for me!

Post a Comment

Tech World

Label Cloud

Must Buy

  © Blogger templates by Ourblogtemplates.com updated with zenplate.com tips

Back to TOP