kod PHP
$path = "images/"; if($file !== '.' && $file !== '..') { } } } else { }
Zwraca tablice i chce ją odczytać kodem
Kod
var myVars:LoadVars = new LoadVars();
myVars.onLoad = function(success) {
if (success) {
var arraye:Array = myVars.arraye;
msgbox.text = arraye[0]; // undefined
// msgbox.text = arraye[0][0]; // undefined
} else {
msgbox.text = "load error";
}
};
myVars.load("file.php", myVars, "POST");
myVars.onLoad = function(success) {
if (success) {
var arraye:Array = myVars.arraye;
msgbox.text = arraye[0]; // undefined
// msgbox.text = arraye[0][0]; // undefined
} else {
msgbox.text = "load error";
}
};
myVars.load("file.php", myVars, "POST");
ale wszędzie mam undefined, dlaczego?
pozdrawiam