satheesh
New Member
- Messages
- 883
- Reaction score
- 0
- Points
- 0
Create a Digtal time in Flash Cs3:
1.Create a new Document.
2.Place a Dynamic text field on the stage and set them instance name "date_txt";
3.Select the first frame and press F9.
If you like this give some rep.
1.Create a new Document.
2.Place a Dynamic text field on the stage and set them instance name "date_txt";
3.Select the first frame and press F9.
Code:
//SEt Timer to run number of time.
var timer:Timer=new Timer(100);
timer.addEventListener(TimerEvent.TIMER,timer_com);
timer.start();
function timer_com(e:TimerEvent):void {
var date:Date=new Date();
date_txt.text="Date:" + date.getDate() + "/" + date.getMonth() + "/" + date.getFullYear() + " Time:" + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
}
If you like this give some rep.