What if you explicitly passed null? theFunction(null,null,'bar');
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, November 14, 2008 4:12 PM To: [email protected] Subject: [flexcoders] Calling functions with optional parameters I thought that when you have a function that looks like this: private function theFunction(param1:int=0, param2:int=1, param3:String='foo') { //do stuff } That it's ok to call the function like this: theFunction(,,'bar'); But when I do this, I'm getting all sorts of syntax errors, including "Expecting identifier before comma." Am I misunderstanding how this works? Will I have to use ...rest and give up my typed arguments and named variables? Thanks; Amy

