hi guys i have this code, but i cant obtain the rigth behaviour
var tmp1;
tmp1=Test();
trace (tmp1);
function Test()
{
var Tmed = new LoadVars();
var li_med;
li_med="nothing";
Tmed.accion="totalmedidores";
Tmed.id_diagrama=_root.li_diagrama;
Tmed.sendAndLoad("
http://127.0.0.1/unf_balance.asp",Tmed,"GET");
Tmed.onLoad = function() {
li_med = this.tmedidores; // if this.tmedidores was 5 i want to
return that value
//_root.li_med = this.tmedidores; it doesn't works =(
return li_med;
}
//return li_med; if i unmark this line it returns "nothing"
}
i want to obtain the li_med value to display it on screen but it doesn't
works, i've tried to debug it, and flash runs until Tmed.onLoad line, then
jumps the code in, and returns undefined to tmp1 variable (because i have //
before return), how can i get the value, if i delete // on return line flash
returns "nothing"
how can i fix it??
thanks a lot by your suggestion =)
--
"Lo verdadero es demasiado sencillo, pero siempre se llega a ello por lo más
complicado."
http://spaces.msn.com/members/rickwhite/ Rick's Blog