» Home » Movies » Tutorials » Submissions » Sound FX » Board » Links » Reviews » Feedback » Gallery » Fonts » The Lounge » Sound Loops
Search tutorials
Author: Joni Hakkarainen | Website: http://-
Ok lets start. First you need create a movie clip. Then create inside the movie clip four dynamic textboxes; one for hours, one for minutes, one for moths and one for days. Then give variable Names to hours, minutes, days and months textboxes(i used hrs, min, day, month. Then type two numbers to hours, minutes and days textboxes, and example FEB to moths textbox. Lastly move the movie clip to the main scene. Ok, lets move on to the script: copy and paste this script to the movie clip on the main scene(click the movie clip and open Actions window): onClipEvent(enterFrame) { time = new Date(); hrs = time.getHours(); min = time.getMinutes(); day = time.getDate(); month = time.getMonth(); if(min<10) {min="0" + time.getMinutes();} else if(hrs<10) {hrs="0" + time.getHours();} if(month=="0") {month="JAN"} else if(month=="1") {month="FEB"} else if(month=="2") {month="MAR"} else if(month=="3") {month="APR"} else if(month=="4") {month="MAY"} else if(month=="5") {month="JUN"} else if(month=="6") {month="JUL"} else if(month=="7") {month="AUG"} else if(month=="8") {month="SEP"} else if(month=="9") {month="OCT"} else if(month=="10") {month="NOV"} else if(month=="11") {month="DEC"} } Funny thing is that Flash things that january is in numbers "0", thats why we have to chance "0" to JAN, or you can otherwise just chance it to "1" and to everyone of them(1,2,3,4,5...) And if the clock is 05:09, flash makes it to 5:9, so we have to add those extra sripts which is shown above: if(min<10) {min="0" + time.getMinutes();} else if(hrs<10) {hrs="0" + time.getHours();} Well done, thats it!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.