A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Time and Date not updating dynamically

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    13

    Question Time and Date not updating dynamically

    I have done the implementation of displaying time. but it is not updating the time dynamically. Only the values which are taken from system are displayed on display.

    I have the following simple code:

    public var date;

    addEventListener(Event.ENTER_FRAME,enterFrameHandl er);

    private function enterFrameHandler(event:Event):void
    {

    date = new Date()
    date_txt.text=date.getHours() + ":" + date.getMinutes() + ":"+date.getSeconds();

    }

    Text box is defined as dynamic text.

    Please provide your suggestions to get the time updating dynamically.

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    13
    I was doing a mistake in the code. found it and now it is working fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center