Agenda XML / mc height detection

I created a simple xml generated agenda on flash 8 / actionscript 2
The first node define the months, the second the days and location.
Id like the month vertical position to adapt itself to the previous month height.
I have no problem to detect how much days are within a month,
but for now the position is fixed and doesn’t adapt itself.
I added a few comments to the code.
Does anyone have a clue where my mistake is?
I can of course provide a fla and xml file if needed
Thanks to all.

function loadXML(loaded) {
	if (loaded) {
		month = new Array();
		date = new Array();
		location = new Array();
		day = new Array();
		xmlNode = this.firstChild;
		totali = xmlNode.childNodes.length;
		for (i=0; i<totali; i++) {
			if (xmlNode.childNodes*.nodeName == "month") {
				currentMonth = xmlNode.childNodes*.attributes.month;
				currentNode = xmlNode.childNodes*;
//here i detect how much days within a month
				totalj = currentNode.childNodes.length;
//I make a trace that shows correct result
				var mc:MovieClip = content.attachMovie("month", "month"+i, i); = i;
				mc.month_text.text = currentMonth.toUpperCase();
//here is the code supposed to define each mc vertical position
				mc._y = Math.round(30+(totalj*18)*i);
//another trace that show me that the position is fixed instead of adapting itself

				for (j=0; j<totalj; j++) {
					if (currentNode.childNodes[j].nodeName == "day") {
						currentDate = currentNode.childNodes[j];
						currentlocation = currentNode.childNodes[j].attributes.location;

						var mc2:MovieClip = mc.attachMovie("day", "day"+j, j); = j;
						mc2.date_text.text = currentDate;
						mc2.location_text.text = currentlocation.toUpperCase();
//here is the code to define the position of each 'day' clip
						mc2._y = Math.round(18+(mc2._height)*j);

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;