# Handle multi buttons

**URL:** <https://forum.kirupa.com/t/handle-multi-buttons/260846>\
**Category:** Uncategorized\
**Created:** [May 20, 2008, 1:58pm UTC](https://forum.kirupa.com/t/handle-multi-buttons/260846 "2008-05-20T13:58:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![padideh](https://avatars.discourse-cdn.com/v4/letter/p/b5a626/32.png) [@padideh](https://forum.kirupa.com/u/padideh)\
**Post date:** [May 20, 2008, 1:58pm UTC](https://forum.kirupa.com/t/handle-multi-buttons/260846/1 "2008-05-20T13:58:42Z")

</div>

hi all how can i handle multi buttons in as3

```php
for (var i:Number = 1; i<=some; i++) {
    selpic["filter"+i].vars = i;
    selpic["filter"+i].onRelease = function() {
        if (_root.wp != this.vars) {
            _root.t = 1;
            _root.fadeOut = true;
            _root.wp = this.vars;
        }
    };
}

```

this work in as2 but i want do this in as3  
thanks
