Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/04/2008, 07:05
Avatar de sirguy
sirguy
 
Fecha de Ingreso: septiembre-2006
Ubicación: Mallorca
Mensajes: 959
Antigüedad: 17 años, 6 meses
Puntos: 12
Re: Parm a Variable

Creando un archivo txt llamado songs:

song=cancion

Y en el fla:

var cargador_lv:LoadVars = new LoadVars();
cargador_lv.load("songs.txt");
cargador_lv.onLoad = function() {
mus=this.song
mySound = new Sound();
mySound.loadSound(mus+".mp3", true);
mySound.start();
}

Y listos
__________________
Chanante!