I assume just using a,b,c,d didn't work? Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui
From: [email protected] [mailto:[email protected]] On Behalf Of flexaustin Sent: Friday, February 06, 2009 8:55 AM To: [email protected] Subject: [flexcoders] Getting at variables inside a function that accepts a function 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.

