Bonjour tout le monde j'ai un petit soucis avec mon calendrier As2 xml depuis l'année 2010 mes événements ne s'affiche plus. L'année 2009 fonction très bien c'est juste les événements qui ne s'affiche plus quand on passe le 1 er janvier.
Pouvez vous m'aidez merci d'avance.
voici mon script
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 now_month = month0; now_year = year0; tmp_month = month0; now_month_text = wmonth[month0]; culc_StartDay(now_year, now_month); nod = NumberOfDate[month0]; event_number = xmlDoc.firstChild.childNodes.length; trace(event_date); for (n=1; n<=31; n++) { _root.calendar["d"+n]._x = 47*Math.floor((n+day_sd-1)%7); _root.calendar["d"+n]._y = 39*Math.floor((n+day_sd-1)/7); if (((n+day_sd-1)%7) == 0 && n != now_date) _root.calendar["d"+n].text_color.textColor = 0x58184C; else if (n == now_date) _root.calendar["d"+n].text_color.textColor = 0xFF00FF; else _root.calendar["d"+n].text_color.textColor = 0x000000; if (_root.calendar["d"+n].daytext>nod) _root.calendar["d"+n].gotoAndStop(2); for (i=0; i<event_number; i++) { event_date = xmlDoc.firstChild.childNodes[i].attributes.date; event_title = xmlDoc.firstChild.childNodes[i].attributes.titre; trace(now_year); if (event_date == n+"/"+tmp_month+"/"+now_year) { _root.calendar["d"+n].bot.gotoAndStop(2); if (event_title.length>7) str_points="..."; else str_points=""; _root.calendar["d"+n].bot.title=event_title.substr(0,9)+str_points; break; } else _root.calendar["d"+n].bot.gotoAndStop(1); } } pict.onPress = function() { trace("onPress");getURL("Prochain-evenements.html"); } for (j=0; j<event_number; j++) { event_date = xmlDoc.firstChild.childNodes[j].attributes.date; event_title = xmlDoc.firstChild.childNodes[j].attributes.titre; event_text = xmlDoc.firstChild.childNodes[j].firstChild.nodeValue; if (event_date == now_date+"/"+tmp_month+"/"+year0) { today = wday[Math.floor((now_date+day_sd-1)%7)] + " " + now_date + " " + wmonth[month0] + " " + year0; diary_text = "<b><font size='14'>"+today+"</font><br><br>"+event_title+"</b><br>"+event_text+"<br><br>"; pict._visible=false; break; } else diary_text = ""; }
Partager