Hi ..
I think the below posted code shld help you .Bind the time variable
to a label where you want to display the time and call the showTime
function on creation complete of the application. Hope this helps
private var ticker:Timer;
[Bindable] private var time:String;
public function showTime():void
{
var currentTime:Date = new Date();
time=timeFormat.format(currentTime);
ticker = new Timer(1,1);
ticker.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);
ticker.start();
}
public function onTimerComplete(event:TimerEvent):void{
showTime();
}
Thanks
Prasanth
On Dec 17, 10:43 am, matiasx <[email protected]> wrote:
> Hi all,
>
> I need to show the current time in my browser. I try with new Date,
> but that's a static time y need my system. I need my time show current
> system time, like windows tray bar.
>
> Thanks in advance.
>
> Matias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---