Hi.

I have just written a post with an issue I can´t solve with an XML + Flash coding. This issue is about getting the first item marked when entering the section.

Here´s an example of what I mean: www.escueladeperiodismo.edu.ar/demos/inicio.html

See that when you enter, you get four items first and 9 below. These 9 items belong to the "Sección 1" item above. What I need is that "Sección 1" gets marked as if I clicked on it.

This is the general ActionScript:

Code:
this._x=25;
this._y=196;

System.useCodepage = true;
portfolioXML = new XML();
portfolioXML.ignoreWhite = true;
portfolioXML.load("trabajos.xml");
portfolioXML.onLoad = function(){
	attacharSecciones()
}

/*Función para attachar secciones*/
attacharSecciones=function(){
	
	x = 0;
	y = 0;
	ancho = 110;
	alto = 19;
	num_columnas = 2;
	columna = 0;

	var catalogo = portfolioXML.firstChild;

   	for (var i = 0; i<catalogo.childNodes.length; i++) {
		var seccion = catalogo.childNodes[i];
      	var secc_mc = attachMovie("seccionID", "bot1"+i, i);
		secc_mc._x = x;
		secc_mc._y = y;								
	  	secc_mc.index_seccion=i;
      	secc_mc.titulo = seccion.attributes.titulo;
		x += ancho;
		columna += 1;
		if (columna == num_columnas){
			x -= (ancho*num_columnas);
			y += alto;
		}
	}
	attacharEmpresas(0);
}

/*Función para attachar empresas*/
attacharEmpresas=function(index_seccion){
	
	createEmptyMovieClip("modEmpresas",200);
	modEmpresas._x = 0;
	modEmpresas._y = 70;
	
	var catalogo = portfolioXML.firstChild;
    var seccion = catalogo.childNodes[index_seccion];
	//eliminamos las que hubiera
    j=0
	var emp=this["bot2"+j]
	while (emp!=null){
		emp.removeMovieClip()
		j++
	  	emp=this["bot2"+j]
	}
	
	inicio = 0;
	itemsPorPagina = 9;
	itemsTotales = seccion.childNodes.length;
	pages = Math.ceil(itemsTotales/itemsPorPagina);
	pageclip = 1;
	
	if (itemsTotales>9){
		paginas._visible = true;
	}
	else {
		paginas._visible = false;
	}
	
    for (var j = inicio; j<(inicio+itemsPorPagina); j++) {
       var empresa = seccion.childNodes[j];
       var emp_mc = modEmpresas.attachMovie("empresaID", "bot2"+j, j+100);
       emp_mc._y = 20*j;
       emp_mc.titulo = empresa.attributes.titulo;
	   emp_mc.index_seccion = index_seccion;
	   emp_mc.index_empresa = j;
	}
	
	attacharCaracteristicas(index_seccion,0);
}

/*Función para attachar características*/
attacharCaracteristicas=function(index_seccion,index_empresa){
	
	createEmptyMovieClip("modCaracteristicas",300);
	modCaracteristicas._x = 235;
	modCaracteristicas._y = 260;
	
	var catalogo = portfolioXML.firstChild;
    var seccion = catalogo.childNodes[index_seccion];
    var empresa = seccion.childNodes[index_empresa]
	//eliminamos las que hubiera
    j=0
	var caract = this["bot3"+j]
	while (caract != null){
		caract.removeMovieClip()
		j++
	  	caract = this["bot3"+j]
	}
	for (var k = 0; k<empresa.childNodes.length; k++) {
		var caracteristicas = empresa.childNodes[k];
        var caract_mc = modCaracteristicas.attachMovie("caracteristicasID", "bot3"+k, k+200);
        caract_mc._y = -22*k;
		caract_mc.nombre = caracteristicas.attributes.nombre;
		caract_mc.link = caracteristicas.attributes.link;
		caract_mc.desc = caracteristicas.attributes.desc;
		caract_mc.foto = caracteristicas.attributes.foto;
		img._x = 256;
        img._y = -56;	
	}
}

tapaMenu=function(){
	attachMovie("tapa", "tapa", 400);
	tapa._x=0;
	tapa._y=70;
}

MovieClip.prototype.botOff = function() {
	for (i=0; i<100; i++) {
		this["bot"+i].gotoAndStop(1);
	}
};

stop();
And the ActionScript inside the buttons from the items:

Code:
boton.onRelease = function(){
	_parent.attacharEmpresas(index_seccion)
	_parent.tapaMenu();
	_parent.botOff()
	gotoAndStop("activo");
}
¿Any tips?