ERRATA: The title of this thread was edited due to popular complaints, sorry for that! Original Title: Cyan Blue, you are the only one who can help me!!!
Hi Guys:
, i īve got this script that read data from a php file (php file makes a query to a mysql database and sends data to flash) the problem is that it only shoes the last entry of the database i want to show all existing data of the database.
So can anyone recommend me some changes to my script for doing this??
This is the as code:
ActionScript Code:
var myData:LoadVars = new LoadVars();
myData.onLoad = function(succes) {
if (succes) {
_root.Id_tb.htmlText = this.Id;
_root.Apellido_tb.htmlText = this.Apellido;
_root.Nombre_tb.htmlText = this.Nombre;
_root.Dni_tb.htmlText = this.Dni;
_root.Telefono_tb.htmlText = this.Telefono;
_root.Dia_tb.htmlText = this.Dia;
_root.Mes_tb.htmlText = this.Mes;
_root.Ano_tb.htmlText = this.Ano;
_root.Hora_tb.htmlText = this.Hora;
_root.Minutos_tb.htmlText = this.Minutos;
_root.Abogado_tb.htmlText = this.Abogado;
_root.Asunto_tb.htmlText = this.Asunto;
_root.Donde_tb.htmlText = this.Donde;
} else {
trace("Error loading data");
}
};
myData.load("muestradevvars.php");
I also have ontop of these textboxes used for displaying data, a listbox where i list only the lastname (Apellido) of the clients that are stored in the mysql database, i would like , that when a user click on the lastname, with as code to fill in the other texboxes with the coresponding database data for that specific record.
Im sending you the fla that have by now, so can see what i am talking about.
Thanks.
Emilio