# AS 2 / attachMovie with Tweener

**URL:** <https://forum.kirupa.com/t/as-2-attachmovie-with-tweener/286344>\
**Category:** flash\
**Created:** [April 14, 2009, 8:17am UTC](https://forum.kirupa.com/t/as-2-attachmovie-with-tweener/286344 "2009-04-14T08:17:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoxheaD](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@BoxheaD](https://forum.kirupa.com/u/BoxheaD)\
**Post date:** [April 14, 2009, 8:17am UTC](https://forum.kirupa.com/t/as-2-attachmovie-with-tweener/286344/1 "2009-04-14T08:17:53Z")

</div>

I want to fade in a mc with Tweener. The attachMovie works fine, but tweener does not. Any ideas? Am I totally lost here?

```auto
my_btn.onRelease = function (){
    empty_container.attachMovie("myfadein_mc", "myfadein_mc", 1);
    Tweener.addTween(myfadein_mc,{_alpha:100, time:2, delay:0, transition:"linear"});
    }

```

nor does this work:

```auto
my_btn.onRelease = function (){
    var myfadein_mc:MovieClip = empty_container.attachMovie("myfadein_mc", "myfadein_mc", 1);
    Tweener.addTween(myfadein_mc,{_alpha:100, time:2, delay:0, transition:"linear"});
    }

```

no matter what path I give to myfadein\_mc, tweener does not work.  
myfadein\_mc is properly lingaged.  
Caurina folder etc. is in place, as other tweeners work fine.
