# AS2 Object movement and alpha tween

**URL:** <https://forum.kirupa.com/t/as2-object-movement-and-alpha-tween/316292>\
**Category:** flash\
**Created:** [November 17, 2010, 11:17pm UTC](https://forum.kirupa.com/t/as2-object-movement-and-alpha-tween/316292 "2010-11-17T23:17:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmieCutieToes](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@AmieCutieToes](https://forum.kirupa.com/u/AmieCutieToes)\
**Post date:** [November 17, 2010, 11:17pm UTC](https://forum.kirupa.com/t/as2-object-movement-and-alpha-tween/316292/1 "2010-11-17T23:17:45Z")

</div>

So I have so parts of actionscript which I am figuring out on how to make them one. What I am wanting to do is move an object to the right and fadeout.  
Here is my code to animate right 10 pixels, this works perfectly.

```auto

(__root.galleryThumbs.length <= 1) ?__root.navigation.button_info._x = 0 : __root.navigation.button_info._x = Math.round((__root.navigation.controls._x + __root.navigation.controls._width) + 10);

```

As you can see, I am moving “button\_info” when the gallery thumbs only has one image in it. Now the code below I wrote up quikly to tween the “button\_info” to an alpha of 0.

```auto

Tweener.addTween(__root.navigation.button_info, {_alpha:0, time:0.8, transition:"easeOutExpo"});

```

My problem is I’m not sure on how to combine the codes ☹  
Any help is greatly appreciated!
