you need to use the 'rest' parameter its an ellipsis (...)

details here:
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001834.html

On 7/25/06, Artur Kordowski <[EMAIL PROTECTED]> wrote:

In Flex 1.5 there was a way to create a function and pass optional arguments to it, and get them in the function using arguments[0].
 
private function foo():Void
{
    var arg = arguments[0];
}
 
When I try it to do in Flex 2 I've got still an 'Inccorect number of arguments' error.
Have anyone an idea how I can do it in Flex 2?
 
Thanks, Artur


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to