Event calendar

Ok first of all i want to say that i know there is thread with event calendar especialy the one a use, but this not what im searching for.

What i want to do, is to load external swf movie, when this movie exist for this specific date. Now with the script i use, spark event calendar, i can only load text in the text box

The main As
[AS]
var daysOfWeek_array = [“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”];
var monthsOfYear_array = [“January”,“February”,“March”,“April”,“May”,“June”,“July”,“August”,“September”,“October”,“November”,“December”]

// dateTimeFormat is used to output dates in more readable style
// by passing in a mask such as:
// “dddd, d mmmm yyyy” which would return “Tuesday, 4 February 2003”
Date.prototype.dateTimeFormat = function (mask) {
var out = “”;
var i = 0;
while (i < mask.length) {
// escaped characters
if (mask.substr(i,1) == “*”) {
out += mask.substr(i+1,1);
i=i+2;
// year
} else if (mask.substr(i,4) == “yyyy”) {
out += this.getFullYear().toString();
i=i+4;
} else if (mask.substr(i,2) == “yy”) {
out += this.getFullYear().toString().substr(2,2);
i=i+2;
// month
} else if (mask.substr(i,4) == “mmmm”) {
out += monthsOfYear_array[this.getMonth()];
i=i+4;
} else if (mask.substr(i,3) == “mmm”) {
out += monthsOfYear_array[this.getMonth()].substr(0,3);
i=i+3;
} else if (mask.substr(i,2) == “mm”) {
if (this.getMonth() < 10) out += “0”;
out += (this.getMonth() + 1);
i=i+2;
} else if (mask.substr(i,1) == “m”) {
out += (this.getMonth() + 1);
i++;
// date
} else if (mask.substr(i,4) == “dddd”) {
out += daysOfWeek_array[this.getDay()];
i=i+4;
} else if (mask.substr(i,3) == “ddd”) {
out += daysOfWeek_array[this.getDay()].substr(0,3);
i=i+3;
} else if (mask.substr(i,2) == “dd”) {
if (this.getDate() < 10) out += “0”;
out += this.getDate();
i=i+2;
} else if (mask.substr(i,1) == “d”) {
out += this.getDate();
i++;
// hours
} else if (mask.substr(i,2) == “HH”) {
if (this.getHours() < 10) out += “0”;
out += this.getHours();
i=i+2;
} else if (mask.substr(i,2) == “hh”) {
if ((this.getHours() < 10 and this.getHours() > 0) or (this.getHours() < 22 and this.getHours() > 12)) {
out = out + “0”;
}
if (this.getHours() > 12) {
out += (this.getHours() - 12);
} else if (this.getHours() == 0) {
out += “12”;
} else {
out += this.getHours();
}
i=i+2;
} else if (mask.substr(i,1) == “H”) {
out = out + this.getHours();
i++;
} else if (mask.substr(i,1) == “h”) {
if (this.getHours() > 12) {
out += (this.getHours() - 12);
} else if (this.getHours() == 0) {
out += “12”;
} else {
out += this.getHours();
}
i++;
// minutes
} else if (mask.substr(i,2) == “nn”) {
if (this.getMinutes() < 10) {
out += “0”;
}
out += this.getMinutes();
i=i+2;
} else if (mask.substr(i,1) == “n”) {
out += this.getMinutes();
i++;
// seconds
} else if (mask.substr(i,2) == “ss”) {
if (this.getSeconds() < 10) {
out += “0”;
}
out += this.getSeconds();
i=i+2;
} else if (mask.substr(i,1) == “s”) {
out += this.getSeconds();
i++;
// am - pm
} else if (mask.substr(i,2) == “tt”) {
if (this.getHours() < 12) {
out += “am”;
} else {
out += “pm”;
}
i=i+2;
} else if (mask.substr(i,1) == “t”) {
if (this.getHours() < 12) {
out += “a”;
} else {
out += “p”;
}
i++;
} else if (mask.substr(i,2) == “TT”) {
if (this.getHours() < 12) {
out += “AM”;
} else {
out += “PM”;
}
i=i+2;
} else if (mask.substr(i,1) == “T”) {
if (this.getHours() < 12) {
out += “A”;
} else {
out += “P”;
}
i++;
// anything else
} else {
out += mask.substr(i,1);
i++
}
}
return out;
}

// show the event information when a date with events is clicked
calendar_ec.onDisplayEvent = function (eventsData, dateObj) {
var event_str = “<font color=’#999999’><b>” + dateObj.dateTimeFormat(“dddd, d mmmm yyyy”) + “</b></font><br><br>”;
for (var i=0; i<eventsData.length; i++) {
// create a pointer to the eventdata to save typing!
var d = eventsData*;
// output the title of the event
event_str += “<font color=’#999999’><b>” + d.title + “</b></font><br>”;
// output the description
if (d.description.length) event_str += d.description + “<br>”;
// if there are more events output a line break
if (i < eventData_array.length - 1) event_str += “<br>”;
}
// output the generated string to the text box
events_txt.htmlText = event_str;
}

// onSelectDate is called when a day with no events is clicked
calendar_ec.onSelectDate = function (dateObj) {
events_txt.htmlText = “<font color=’#999999’><b>” + dateObj.dateTimeFormat(“dddd, d mmmm yyyy”) + “</b></font><br><br>”;
events_txt.htmlText += “This day has no events and this event was triggered by the onSelectDate event.”;
}

// onHideEvent removes any events information
calendar_ec.onHideEvent = function () {
events_txt.htmlText = “”;
}

// parse date prototype
// takes a string formatted as: “yyyy-mm-dd HH:mm:ss” and converts it to a date object
String.prototype.parseDate = function () {
var d = this.split(" “)[0].split(”-");
var t = this.split(" “)[1].split(”:");
return new Date(d[0],d[1]-1,d[2],t[0],t[1],t[2]);
}

// hide the calendar while we populate it
calendar_mc._visible = false;
getEvents = new XML();
getEvents.ignoreWhite = true;
// when the data has been loaded
getEvents.onLoad = function () {
// calendar_array will hold the calendar data that has been loaded
var calendar_array = new Array();
var minStartDate = this.firstChild.attributes.startDate.parseDate();
var maxEndDate = this.firstChild.attributes.endDate.parseDate();
// minStartDate and maxEndDate are used to set the displayRange
calendar_ec.setDisplayRange({begin:minStartDate,end:maxEndDate});
// loop over the event nodes in the xml
// and stores the record as an object inside calendar_array
var qNodes = this.firstChild.childNodes;
for (var q=0; q<qNodes.length; q++) {
var d = qNodes[q].attributes;
calendar_array.push({title:d.title,description:d.description,startDate:d.startDate.parseDate(),endDate:d.endDate.parseDate(),allDay:Boolean(d.allDay),eventType:d.eventType,pattern:qNodes[q].firstChild});
}
// pass the data array to the calendar
calendar_ec.setDataProvider(calendar_array);
// show the calendar now it is ready
calendar_ec._visible = true;
// simulate a click on today’s date to show any events that happen today
calendar_ec.getDayByDate(new Date().getDate()).onRelease();
}
// load the SparkEventsCalendar_example2.txt into the XML object
getEvents.load(“SparkEventsCalendar_loadXml.xml”);
[/AS]

The Xml
<events startDate=“2003-01-01” endDate=“2004-12-31”>
<event title=“Party Génie” description="" startDate=“2003-07-10” endDate=“2003-07-10” allDay=“0” eventType=“once” />
<event title=“Test Event 2” description=“once on 1 march” startDate=“2003-03-01 09:30:00” endDate=“2003-03-01 11:00:00” allDay=“0” eventType=“once” />
<event title=“Test Event 3” description=“once on 15 march” startDate=“2003-03-15 09:30:00” endDate=“2003-03-15 15:30:00” allDay=“0” eventType=“once” />
<event title=“Test Event 4” description=“once on 1 april” startDate=“2003-04-01” endDate=“2003-04-01” allDay=“1” eventType=“once” />
<event title=“Mardi amnésie” description=“Tous les mardis, les mardis sexy” startDate=“2003-01-01” endDate=“2004-12-31” allDay=“1” eventType=“weekly”>
<pattern sun=“0” sat=“0” fri=“0” thu=“0” wed=“0” tue=“1” mon=“0” recur=“1” />
</event>
<event title=“Test Event 6” description=“third wednesday of each month, see <u> <a href=‘http://www.sparkos.com/’>sparkos.com</a> </u>” startDate=“2003-01-01” endDate=“2003-12-31” allDay=“1” eventType=“monthly”>
<pattern day=“wed” week=“3” recur=“1” />
</event>
<event title=“Test Event 7” description=“last friday of april” startDate=“2003-01-01” endDate=“2003-12-31” allDay=“1” eventType=“yearly”>
<pattern day=“fri” week=“5” month=“3” />
</event>
</events>

Please help me im a newbie :h:
or suggest me a script/movie