Optional parameters must come after required parameters. Gordon Smith Adobe Flex SDK Team
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, November 14, 2008 2:02 PM To: [email protected] Subject: [flexcoders] Re: Calling functions with optional parameters --- In [email protected]<mailto:flexcoders%40yahoogroups.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 feel like I'm really sure that I've seen places in the framework code where functions are called this way, but I'm not sure how to search in there to get verification. It would be really, really nice if the docs were detailed enough that I could get a good sense of whether I'm barking up the wrong tree (of course the docs are wrong or misleading a good percentage of the time, so detail is no guarantee) ;-). Thanks; Amy

