Yes, this should work. I can't reproduce your problem. Can you post a tiny but 
complete app that demonstrates the problem?

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Mike Chang
Sent: Wednesday, March 10, 2010 2:42 PM
To: [email protected]
Subject: [flexcoders] Default parameters in function



Hi, I have a function

function myfunc (a:int, b:int, c:int = 0) {
}

I want to be able to call myfunc(a, b) and have c using a default
value 0, is this possible?
I tried it but it says function expects 3 arguments.

Mike

Reply via email to