How would I go about getting at variables of a function when I send in
an anonymous function so...

public function acceptingFunction (func1:Function=null,
func2:Function=null):void{
var a:Number;
var b:String;
   
if(func1 && func2){
   func1;
   anotherAcceptFunction(func2);
   }

}

public function anotherAcceptFunction(func:Function=null){
var c:Number;
var d:String;
   
if(func){
   func
   }
}


acceptFunction(function():void{get at vars a,b,c,d from here});
 


I really don't want to extend the orig. function if I can help it, in
this case extend the acceptingFunction, as its from some other library.

Reply via email to