--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:
Huh, my turn for the Doh! Funny how often we see what we expect,
rather
than what is there.
So, Amy, we have not solved your problem, and hopefully not caused you
much inconvenience.
No, I had already changed
Of Tracy
Spratt
Sent: Friday, November 14, 2008 5:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Calling functions with optional parameters
If you pass a null value to an optional parameter, the function uses the
default values defined in the declaration.
?xml version=1.0
.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon
Smith
Sent: Tuesday, November 18, 2008 1:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Calling functions with optional parameters
This produces the compilation
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Tuesday, November 18, 2008 4:25 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Calling functions with optional parameters
If you pass a null value to an optional
] Re: Calling functions with optional parameters
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:
If you pass a null value to an optional parameter, the function uses
the
default values defined in the declaration.
Great, Tracy. Way
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:
You can write either
MyClass.foo = bar;
or
MyClass[foo] = bar;
to set a static property of a class.
Cool, thanks :-). This has really been a learning week for me.
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:
What if you explicitly passed null?
theFunction(null,null,'bar');
The defaults aren't always null, and MPO is that the developer
shouldn't need to know what the appropriate default is to make the
default behavior. I
--- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED]
wrote:
Amy,
Fotis is right--if you want to specify a param that has a default,
you
need to specify all parameters to the left of it in the argument
list.
Depending on your function and how many parameters it has, you
Subject: [flexcoders] Re: Calling functions with optional parameters
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Maciek
Sakrejda [EMAIL PROTECTED]
wrote:
Amy,
Fotis is right--if you want to specify a param that has a default,
you
need to specify all parameters
Optional parameters must come after required parameters.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy
Sent: Friday, November 14, 2008 2:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Calling functions with optional
]]/mx:Script
mx:Button label=test click=doTest() /
/mx:Application
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Friday, November 14, 2008 5:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Calling functions with optional parameters
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:
If you pass a null value to an optional parameter, the function uses
the
default values defined in the declaration.
Great, Tracy. Way to make me feel like a dope ;-).
BTW, how do you get such pretty formatting?
12 matches
Mail list logo