Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/04/2006, 18:44
Avatar de nuevo
nuevo
 
Fecha de Ingreso: mayo-2003
Ubicación: Spain
Mensajes: 2.009
Antigüedad: 20 años, 11 meses
Puntos: 2
hola y gracias x contestar... se hace dificil en este foro...

tu ejemplo es bueno, me ayudo en lo q queria, mira como lo deje, quizas tu puedas ver mas...

Código:
var menuXml:XML = new XML();
menuXml.ignoreWhite = true;

menuXml.onLoad = function(success) {
	if(success) mostrar_menu(this.firstChild.childNodes,0,0);
}//end func
	
menuXml.load("xml/mas_downloads.xml");

var mostrar_menu:Function = function(lista_menu:Array,en_x:Number,en_y:Number):Void{

	for(n=0;n<lista_menu.length;n++){}//end func

	stopAllSounds();
	a = 1;
	radio = new Sound(this);
	valorAleatorio = 0+Math.round(Math.random()*n);	
	etiqueta_txt.text = lista_menu[valorAleatorio].firstChild.nodeValue;
	radio.loadSound(lista_menu[valorAleatorio].attributes.url, true);
	radio.onSoundComplete = function() {
		
		if (a<n) {
			valorAleatorio = 0+Math.round(Math.random()*n);	
			a = a+1;
			etiqueta_txt.text = lista_menu[valorAleatorio].firstChild.nodeValue;
			radio.loadSound(lista_menu[valorAleatorio].attributes.url, true);
		}else{
			valorAleatorio = 0+Math.round(Math.random()*n);	
			a = 1;
			etiqueta_txt.text = lista_menu[valorAleatorio].firstChild.nodeValue;
			radio.loadSound(lista_menu[valorAleatorio].attributes.url, true);
		}//end if
	};//end func	
}//end func
//stop();
aun asi me va bien... quite el _root. pq lo cargo desde otro... y no funcionaba...

gracias amigo.
__________________
3w.valenciadjs.com
3w.laislatv.com