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.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(); }


LinkBack URL
About LinkBacks


Reply With Quote


