# Using apply to pass Array of Params

**URL:** <https://forum.kirupa.com/t/using-apply-to-pass-array-of-params/221007>\
**Category:** flash\
**Created:** [March 31, 2007, 1:39pm UTC](https://forum.kirupa.com/t/using-apply-to-pass-array-of-params/221007 "2007-03-31T13:39:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkum](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arkum/32/1951_2.png) [@arkum](https://forum.kirupa.com/u/arkum)\
**Post date:** [March 31, 2007, 1:39pm UTC](https://forum.kirupa.com/t/using-apply-to-pass-array-of-params/221007/1 "2007-03-31T13:39:02Z")

</div>

Hi,

What is wrong with this?:

```auto
var myBMD:BitmapData = new BitmapData(args);
var myArray:Array = [
[myBMD.merge, [arg1, arg2, arg3, arg4]]
]

var myFunc:Function = myArray[0][0];
var myArgs:Array = myArray[0][1];

myFunc.apply(null, myArgs);

```

Thanks
