# Dynamic function params

**URL:** <https://forum.kirupa.com/t/dynamic-function-params/291015>\
**Category:** flash\
**Created:** [June 23, 2009, 7:59pm UTC](https://forum.kirupa.com/t/dynamic-function-params/291015 "2009-06-23T19:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bed718](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bed718](https://forum.kirupa.com/u/bed718)\
**Post date:** [June 23, 2009, 7:59pm UTC](https://forum.kirupa.com/t/dynamic-function-params/291015/1 "2009-06-23T19:59:25Z")

</div>

is it possible to store a list of params needed for a function in an array and then use that in a funciton call?

ie

var myParams:Array = [“param1”, “param2”, “param3”]

function myFunction(p1=“test1”, p2=“test2”, p3=“test3”){  
doStuff;  
}

myFunction(myParams:Array)

or something like that?? Prob have to iterate the array but how do i get the params into the function call? Is this even possible?

-=b=-
