Julekalender i flash
Hej alle da det snart er jul vil jeg gerne have en slagt julekalender. som viser hvad dato det er men det virker ikke...prøv lige at se på den her swf fil http://vilmand.net84.net/countdown.swf
koden er her
--------------------------------------------
myDate = new Date();
weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
// Displays: Monday 1 January 2000
myDate = (weekday[myDate.getDay()]+" "+myDate.getDate()+" "+month[myDate.getMonth()]+" "+myDate.getFullYear());
if (myDate = 1)
gotoAndStop('1')
if (myDate = 2)
gotoAndStop('2')
if (myDate = 3)
gotoAndStop('3')
if (myDate = 4)
gotoAndStop('4')
if (myDate = 5)
gotoAndStop('5')
if (myDate = 6)
gotoAndStop('6')
if (myDate = 7)
gotoAndStop('7')
if (myDate = 8)
gotoAndStop('8')
if (myDate = 9)
gotoAndStop('9')
if (myDate = 10)
gotoAndStop('10')
if (myDate = 11)
gotoAndStop('11')
if (myDate = 12)
gotoAndStop('12')
if (myDate = 13)
gotoAndStop('13')
if (myDate = 14)
gotoAndStop('14')
if (myDate = 15)
gotoAndStop('15')
if (myDate = 16)
gotoAndStop('16')
if (myDate = 17)
gotoAndStop('17')
if (myDate = 18)
gotoAndStop('18')
if (myDate = 19)
gotoAndStop('19')
if (myDate = 20)
gotoAndStop('20')
if (myDate = 21)
gotoAndStop('21')
if (myDate = 22)
gotoAndStop('22')
if (myDate = 23)
gotoAndStop('23')
if (myDate = 24)
gotoAndStop('24')