# AS2 Function to Tween Left out of screen and to Tween right

**URL:** <https://forum.kirupa.com/t/as2-function-to-tween-left-out-of-screen-and-to-tween-right/303458>\
**Category:** Uncategorized\
**Created:** [January 20, 2010, 6:03pm UTC](https://forum.kirupa.com/t/as2-function-to-tween-left-out-of-screen-and-to-tween-right/303458 "2010-01-20T18:03:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laranjaquadrada](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@laranjaquadrada](https://forum.kirupa.com/u/laranjaquadrada)\
**Post date:** [January 20, 2010, 6:03pm UTC](https://forum.kirupa.com/t/as2-function-to-tween-left-out-of-screen-and-to-tween-right/303458/1 "2010-01-20T18:03:03Z")

</div>

Hi,

I’m creating a image gallery and I have this code when I click on image

html4strict Code:  
imageBox[curCell.\_name].\_visible = false;

imageBox[mc.\_name].fadeIn();  
What I want to setup is imageBox[curCell.\_name] to move out to left while fading out.

And imageBox[mc.\_name] moving right of the screen to center while fading in…

Could anyone help me to get a tween function to left and a tween function to center from right?

This is Flash Action Script 2 file.

Thanks.
