# How to group several vars?

**URL:** <https://forum.kirupa.com/t/how-to-group-several-vars/306703>\
**Category:** Uncategorized\
**Created:** [March 20, 2010, 2:37pm UTC](https://forum.kirupa.com/t/how-to-group-several-vars/306703 "2010-03-20T14:37:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hihello](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@hihello](https://forum.kirupa.com/u/hihello)\
**Post date:** [March 20, 2010, 2:37pm UTC](https://forum.kirupa.com/t/how-to-group-several-vars/306703/1 "2010-03-20T14:37:00Z")

</div>

noobish question, i have several variables, say var1, var2, var3.  
In as2 we simply write:

```auto
groupVar = ["var1", "var2", "var3"];

```

How can i do that in as3? so i can apply a function to them.  
Thanks.
