[flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
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

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Bjorn Schultheiss
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 =

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
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] wrote: In the second version your initializing foo as an object. I'm pretty

RE: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Gordon Smith
: 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

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
@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

RE: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Alex Harui
mailto:flexcoders@yahoogroups.com ] On Behalf Of Josh McDonald Sent: Monday, April 28, 2008 4:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Advanced(?) Actionscript question Of course you're right, my syntax was dodgey. I meant: var foo : Function

Re: [flexcoders] Advanced(?) Actionscript question

2008-04-28 Thread Josh McDonald
[mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Monday, April 28, 2008 8:06 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Advanced(?) Actionscript question Thanks for that info. I'm not really sure about how things work internally, besides some vague