hi everybody, i want to make a photo gallery where i can tell a php script what directory to list the pics from, then the php script will return the array to flash, im using loadvars for the first time and im having problems with it, i’ve seen many tutorials where u do like:
myloadvarsobject.load(“the file”);
myloadvarsobject.onload = function(success){
if(success){
“whatever”;
else
“unsuccessful”;
}
}
but i want to send the var to the php file first so im using something like this:
[color=#000050]myloadvarsobject[/color].[color=#0000d0]sendAndLoad[/color][color=#0000ff]([/color][color=#666666]“http://www.whatever.php”[/color], [color=#000050]this[/color], [color=#666666]“POST”[/color][color=#0000ff])[/color];
myloadvarsobject.onload = function(success){
if(success){
“whatever”;
else
“unsuccessful”;
}
}
but when i trace the loaded property of myloadvarsobject is always undefined, as far as i know “sendandload” will load the vars php sends back into tne myloadvarsobject and “onload” will wait till “sendandload” has finished wont it?
what am i missing?
thanks for spending your time reading this