Ok so I’ve tried to create this digital clock according to the wonderfull (and buggy) tutorial on kirupa.com (http://www.kirupa.com/developer/actionscript/digital_clock.htm). I have ajusted it a little bit. (Added september and translated it into dutch)
When I use this actionscript on my date and day movie:
onClipEvent (load) {
mon = ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"];
weekdays = ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"];
}
onClipEvent (enterFrame) {
now = new Date();
nDay = weekdays[now.getDay()];
nMonth = mon[now.getMonth()];
nDate = now.getDate();
nYear = now.getFullYear();
displayDate = +nDate+" "nMonth+", "+nYear;
displayDay = nDay;
}
I get the following error:
Scene=Scene 1, Layer=Date, Frame=105: Line 11: ‘;’ expected
displayDate = +nDate+" “nMonth+”, "+nYear;
Could someone help me with this?
Thnx in adv.