Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/08/2006, 17:46
Avatar de goc00
goc00
 
Fecha de Ingreso: enero-2002
Ubicación: 000's DiMensiOn
Mensajes: 979
Antigüedad: 22 años, 3 meses
Puntos: 3
En un .txt llamado archivo.txt pones algo como:

&var1="HOLA, ¿COMO ESTÁN TODOS?"&

Ahora en Flash: tenemos un campo de texto con NOMBRE DE INSTANCIA miCampo. Luego, en el 1º frame de la película cargas las variables de archivo.txt de esta forma:

Código:
carga = new LoadVars();
carga.load("archivo.txt");
carga.onLoad=function(bien) {
  if(bien) {
    miCampo.text=this.var1;
  } else {
    miCampo.text="ERROR: NO CARGÓ";
};
Te mostrará en el campo de texto el valor de var1 que está en el archivo.txt
__________________
GOC00 CominG soOn v2.0
CyA! & GooD LuCK...