# Handling unknown number of vars

**URL:** <https://forum.kirupa.com/t/handling-unknown-number-of-vars/287980>\
**Category:** Uncategorized\
**Created:** [May 8, 2009, 7:33pm UTC](https://forum.kirupa.com/t/handling-unknown-number-of-vars/287980 "2009-05-08T19:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andriusain](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@andriusain](https://forum.kirupa.com/u/andriusain)\
**Post date:** [May 8, 2009, 7:33pm UTC](https://forum.kirupa.com/t/handling-unknown-number-of-vars/287980/1 "2009-05-08T19:33:46Z")

</div>

Hello I wonder if it’s possible… to pass an unknown number of variables to a function and do the same thing with each one.

```php

TweenFilterLite.to ( border_mc, 0.5, {width:147, delay: 0.5, onComplete:remove_child, onCompleteParams: [photo_mc, web_mc]});

    private function remove_child (child):void
            {
                removeChild(child);
            }

```

As always, thank you!
