Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/08/2009, 14:44
Avatar de nezu
nezu
 
Fecha de Ingreso: junio-2007
Mensajes: 177
Antigüedad: 16 años, 10 meses
Puntos: 0
Scollbar de MC externo

Hola, estoy trabajando con attachmovie que depende de un xml...
Lo que quiero es scrollear esos mc attacheados.

Alguna idea?.

este es el codigo que uso para attachear los mc:

Código:
var opcionesXML:XML = new XML();
opcionesXML.ignoreWhite = true;
opcionesXML.onLoad = function (sucess:Boolean) {
	if (sucess) {
		var opciones:Array = this.firstChild.childNodes;
		for(i = 0; i < opciones.length; i++) {
			_root.attachMovie("mcBoton", "boton"+i, _root.getNextHighestDepth());
			_root["boton"+i]._x = 50;
			_root["boton"+i]._y = 30 + (i * 50);
			_root["boton"+i].texto = opciones[i].childNodes[0].firstChild;
			_root["boton"+i].linkurl = opciones[i].childNodes[1].firstChild;
			_root["boton"+i].onRelease = function () {
				getURL(this.linkurl, "_blank");
			}
		}
	} else {
		trace("Error al Leer archivo XML");
	}
}

opcionesXML.load("menu.xml");
;)