How to loop through all params without knowing their names

I have a few functions that accept several parameters.

public function somefunc(param1:String, param2:String, param3:String):void{


Is there a way to loop through all the params (without knowing how many or their names) and put them in some kind of an array with their names, so I'd get an associative array

param1: "value 1"
param2: "value 2"
param3: "value 3"


The object arguments stores a function's arguments and you can use the length property to get the number of arguments. However it does not provide the names of the arguments, i.e. it won't provide names param1, param2 etc. It will only provide the values of them.

Need Your Help

How to add event to default calendar

iphone objective-c events calendar nsdateformatter

Hi every one i need to keep event to store in default i need to convert the given date string into Nsdate.Here i am not getting correct format..could any help....and i am giving my code

OpenGL ES 2.0 vbo white screen

java android opengl-es opengl-es-2.0 vbo

I have been trying to get my game engine to work on android and I got stuck at vertex buffer arrays. It works using FloatBuffer, but when I tried to render with VBOs I only got a white screen. So I...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.