-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|