# Shorten this actionscript (easy)

**URL:** <https://forum.kirupa.com/t/shorten-this-actionscript-easy/245109>\
**Category:** Uncategorized\
**Created:** [November 26, 2007, 3:22pm UTC](https://forum.kirupa.com/t/shorten-this-actionscript-easy/245109 "2007-11-26T15:22:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![themoon201](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@themoon201](https://forum.kirupa.com/u/themoon201)\
**Post date:** [November 26, 2007, 3:22pm UTC](https://forum.kirupa.com/t/shorten-this-actionscript-easy/245109/1 "2007-11-26T15:22:11Z")

</div>

[LEFT]I’m sure this is mega easy to you guys but I’m not entirely sure how to.

Can I shorten this code?

```php

btn1.filters = [myBevelFilter];
btn2.filters = [myBevelFilter];
btn3.filters = [myBevelFilter];
btn4.filters = [myBevelFilter];
btn5.filters = [myBevelFilter];
btn6.filters = [myBevelFilter];

```

I do it this way a lot but I’m sure there is a way to shorten that?

[/LEFT]
