On 18 dic, 01:34, Prasanth <
mailspark1...@gmail.com> wrote:
> 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