Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/01/2009, 14:56
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 7 meses
Puntos: 31
Respuesta: como pongo dato externo desde url ?

Hola
con este código puedes cargar la ruta URL de un .mp3 desde un archivo de Texto pero no se si ha Ti te funcione. porque tu solo quieres cargar la url
sin la extensión .mp3.
Este es el Codigo:

CODIGO To FLASH
Código PHP:
var MytextFileData:LoadVars = new LoadVars();
mysound = new Sound(this);
MytextFileData.onLoad = function(){
My_url "http://"+MytextFileData.MyURL;
My_puerto MytextFileData.MyPUERTO;
mysound.loadSound(My_urltrue);
//mysound.loadSound(My_url, " :",My_puerto, true);
}
MytextFileData.load("http://www.eigts.com/roR/roS/Mp3_Ruta.txt");
/*
=========================================================
mysound = new Sound(this);
mysound.loadSound("http://xxx.xxx.xxx.xxx:xxxx/;", true);
=========================================================
*/ 
y en el archivo de texto agregas esto

CODIGO To TEXT File
Código:
&MyURL=www.eigts.com/roR/roS/Take_My_Breath_Away.mp3
&MyPUERTO=80
en my caso yo le estoy dando la ruta completa al .mp3
aquí puedes ver una demostración del código que te dejo arriba. Click Aquí para Ver

Flash cs3, ActionScript 2.0

espero te funcione.

-----