[flexcoders] arguments class?
The Flex 2/AS3 docs make it appear that arguments is both a variable, as well as a class. Can anyone clarify this for me? If I want to store arguments away for later usage, what type should I specify (apart from Array, which I *think* will work, tho given that there's not a type inheritance relationship there, it may not)? Steve
Re: [flexcoders] arguments class?
Not sure what you're trying to do... but you might want to have a look at this? http://livedocs.macromedia.com/flex/2/langref/statements.html#..._(rest)_parameter On 1/11/07, sbyrne_dorado [EMAIL PROTECTED] wrote: The Flex 2/AS3 docs make it appear that arguments is both a variable, as well as a class. Can anyone clarify this for me? If I want to store arguments away for later usage, what type should I specify (apart from Array, which I *think* will work, tho given that there's not a type inheritance relationship there, it may not)? Steve
RE: [flexcoders] arguments class?
I'm not sure, but 'arguments' is considered old-fashioned. In AS3 you should use function f(param1:int, param2:String, ... rest) rest has type Array. You don't have to use the name 'rest'. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sbyrne_dorado Sent: Thursday, January 11, 2007 5:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] arguments class? The Flex 2/AS3 docs make it appear that arguments is both a variable, as well as a class. Can anyone clarify this for me? If I want to store arguments away for later usage, what type should I specify (apart from Array, which I *think* will work, tho given that there's not a type inheritance relationship there, it may not)? Steve