Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2006, 09:48
Montecristo
 
Fecha de Ingreso: enero-2006
Mensajes: 5
Antigüedad: 18 años, 3 meses
Puntos: 0
Alguien que me ayyyyyude...

Hace dos semanas que estoy con estoo...


por favor... a ver si me podes ayudar....


Tengo que cargar una lista en flash desde php... y resulta que no funca...

Tengo que cargar... por ejemplo

Nombre ---> Matias
Link ---> n.n.nn.n

Pero son varios nombres... entonces hice esto....


var Obj1 = new LoadVars();
Obj1.load("pipo.php");
texto_txt.htmlText = "Cargando...";
Obj1.onLoad = function() {
texto_txt.html=true;
titulo = Obj1.titulo.split("titulo=");
descripcion = Obj1.descripcion.split("descripcion=");

separador = "----------------------------------------------------------";
texto_txt.htmlText = "";

for (var i = 0; i<titulo.length; i++) {
this.createTextField("texto_txt", this.getNextHighestDepth(), 10, 10, 160, 22);
texto_txt.html=true;
texto_txt.htmlText += "<b>"+"<u>"+titulo[i]+"</u></b><br>"+descripcion[i]+"<br><br>"+"<i>"+"Fuente: "+"<a href=\"asfunction:linkFuenteNoticias,"+descripcion[i]+"\">"+"<u>"+descripcion[i]+"</a></i></u>"+"<br>"+separador;
}
};
////////////////////////// AS FUNCTION ///////////////////////////////////////////////////////////////////////////////
function LinkFuenteNoticias(cual) {

direccion = ""+cual;

getURL(direccion, "_blank");
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////




y el php es este....




<?php

mysql_connect(localhost,"name", "password");
$result = mysql(uv0003_nuke, "select * from Escenas order by

Autor");
$num = mysql_numrows($result);
$i = 0;
while($i < $num) {
$titulo=mysql_result($result,$i,"Nombre");
$archivo=mysql_result($result,$i,"Archivo");

print("titulo=" . $titulo);
echo "&descripcion=$archivo&";





$i++;
}



?>




Pero esto solo me muestra el ultimo registro y no una lista....

a Ver si me podes ayudar....

Gracias....