Hi friends…i have simple question about how to call a function on a class but i dont know how to do it, would you mind to help me,please.
I have a class :
class MyClass{
private var lvSendState:LoadVars;
private var lvLoadState:LoadVars;
public function Test(){
trace("function Test Run");
}
public function LoadSomeThing():Void{
lvSend=new LoadVars();
lvLoad=new LoadVars();
lvSend.sendAndLoad("some url", lvLoad);
lvLoad.onLoad = function(){
//try to call function Test
Test(); //This is doesn't work
}
}
}
I try to call function Test on lvLoad.onload but i doesn’t work,does any body tell me how to call it :} ? thanks in advance