Foros del Web » Creando para Internet » Flash y Actionscript »

Generar variable dinámica

Estas en el tema de Generar variable dinámica en el foro de Flash y Actionscript en Foros del Web. tengo un PHP que me genera el siguiente código: Código: cant=6&sec1=1&nom1=FIESTAS DE FIN DE ÑO&sec2=2&nom2=TEATRO DE NEGOCIOS&sec3=3&nom3=FAMILY DAY&sec4=4&nom4=ESENCIALES&sec5=5&nom5=EVENTOS TEMÁTICOS&sec6=6&nom6=EVENTOS MOTIVACIONALES quiero cargarlos dentro de un ...
  #1 (permalink)  
Antiguo 19/03/2007, 07:48
 
Fecha de Ingreso: marzo-2007
Mensajes: 1
Antigüedad: 17 años, 1 mes
Puntos: 0
Información Generar variable dinámica

tengo un PHP que me genera el siguiente código:

Código:
cant=6&sec1=1&nom1=FIESTAS DE FIN DE ÑO&sec2=2&nom2=TEATRO DE NEGOCIOS&sec3=3&nom3=FAMILY DAY&sec4=4&nom4=ESENCIALES&sec5=5&nom5=EVENTOS TEMÁTICOS&sec6=6&nom6=EVENTOS MOTIVACIONALES
quiero cargarlos dentro de un TXT y poder ver las variables de nombre por separado. o sea
nombre1=valor1
nombre2=valor2
nombre3=valor3
etc

tengo este código:
VER CORCHETES
####
Código:
System.useCodepage=true;
var carga = new LoadVars();
carga.load("secciones.php");
carga.onLoad = function() {
var n:Number=this.cant;
texto_txt.text = "cantidad="+this.cant+newline;
//bucle
if(n!=0){
for(i=1;i<=n;i++){
texto_txt.text+= "nombre"+i+"="+[this.nom+i]+newline;
}
}
//fin bucle
texto_txt.text+= newline+"fin";
}
####
no funciona ¿alguien me puede dar una mano?
gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:05.