Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Carlos Lerma #1
Using multiple new LoadVars()
Hi,
I have a question, I am working with php and flashMX2004, in order to update
some MySQL tables, but my issue is to fill 2 list and one datagrid. For each
one the data comes from different tables and I used as follow:
********************** Functions ************************************
function cargarListaAparatos() {
d.filter = "All";
//Llenamos las listas
d.sendAndLoad("queryAparatos.php",d,"POST");
d.onLoad = function() {
var j;
var sLabel;
lstAparatos.removeAll();
for (j=0; j < this.n; j++) {
lstAparatos.addItem({label:this["NombreAparato"+j],data:this["id"+j]});
}
}
}
function cargarNiveles() {
e.filter = "All";
//Llenamos las listas
e.sendAndLoad("queryNiveles.php",e,"POST");
e.onLoad = function() {
var j;
var sLabel;
lstAparatos.removeAll();
for (j=0; j < this.n; j++) {
lstAparatos.addItem({label:this["Nivel"+j],data:this["id"+j]});
}
}
}
//************************************** Begin Program
*****************************************
mx.accessibility.ListAccImpl.enableAccessibility() ;
var c = new LoadVars();
var d = new LoadVars();
var e = new LoadVars();
cargarDatos();
cargarListaAparatos();
cargarListaNiveles();
stop();
************************************** End
********************************************
Ok, my lists and datagrid are filled, but I would like to know if this is the
best way (define for each php query have a LoadVars variable??? or may be
existe a better way to do that...
any help is welcome...Carlos
Carlos Lerma Guest
-
loadVars() and PHP
HI all I am new to using loadVars, I have read through the language reference for loadVars and looked back at some of the previous posts. My... -
loadVars HELP!!
:disgust; HELP anyone, please. I'm trying to get flash to read a list. The flash and cfm files are in the same directory. If I cut and paste the... -
Help using LoadVars()
Folder has "money.txt" and "money.fla" Money.txt has just one variable... &money=500 In Frame 1, of action layer, I just want to trace out in... -
[AS1][loadVars] Scope trouble with loadVars !
Scope trouble with loadVars ! Hi everybody, I'm new on this server ! You will find enclosed a ".zip" file in wich there's a ".fla" file, a... -
XML Or LoadVars
Good Morning, I am using Flash MX to create a real-time system that is updated when it receives new data - the backend is J2EE. I have a couple of...



Reply With Quote

