I think there is additional overhead in calling an anonymous function (i.e., your 'var foo:Function = ' case).
And I don't think that the rules for what 'this' is, when the function executes, are the same. Gordon Smith Adobe Flex SDK Team ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, April 28, 2008 4:58 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Advanced(?) Actionscript question Of course you're right, my syntax was dodgey. I meant: var foo : Function = function():* {}; But besides that, my questions still stand ;-) -J On Tue, Apr 29, 2008 at 9:45 AM, Bjorn Schultheiss <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: In the second version your initializing foo as an object. I'm pretty certain you cant do, var foo:Function = {trace('foo')} On 29/04/2008, at 9:37 AM, Josh McDonald wrote: Guys, what's the difference (if it exists) between: public function foo() : * {} and: public var foo : Function = {}; Does it exist? I assume you can call Bar.foo() in both cases, and foo shows up as a variable in describeType() in the second instance? Are there other details I'm not aware of? Cheers, -J -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>