# \[MX'04\] Tween Class (Seen this one enuf eh?)

**URL:** <https://forum.kirupa.com/t/mx04-tween-class-seen-this-one-enuf-eh/194340>\
**Category:** flash\
**Created:** [July 22, 2006, 10:08am UTC](https://forum.kirupa.com/t/mx04-tween-class-seen-this-one-enuf-eh/194340 "2006-07-22T10:08:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pixelangry](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@Pixelangry](https://forum.kirupa.com/u/Pixelangry)\
**Post date:** [July 22, 2006, 10:08am UTC](https://forum.kirupa.com/t/mx04-tween-class-seen-this-one-enuf-eh/194340/1 "2006-07-22T10:08:11Z")

</div>

i want to loop it so i dont have to type all this out…what am i doing wrong?

```auto
a1 = [b_logotype, b_graphic, b_web, b_interactive, b_print]

```

```auto
function fadeMenu(){
total = 5;
for(i=0; i<total; i++) {
    easeType = mx.transitions.easing.Regular.easeOut;
    var begin = a1*._width;
    var end = 0;
    var time = .5;
    var mc = a1*;
    menuTween = new mx.transitions.Tween(mc, "_width", easeType, begin, end, time, true);
}

```
