The idea is to pass an array args[] having [<int>, <String>, <int>]
to a function accepting multiple arguments like:
myFunc (int arg1, String arg2, int arg2 ):void
Such that the function call :
myFunc(args[]); can be realized without altering the original function call.
Any suggestions are welcome.
You can use
Function.apply().In your case
Your args[] should contain same order of your myFunc args list match with your datatype.
So that you can’t alter you original function.
Performance wise
apply()is not so good. Other situation you can usecall().http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Function.html#apply()