# Smooth in and Out Transition Tweens

**URL:** <https://forum.kirupa.com/t/smooth-in-and-out-transition-tweens/257756>\
**Category:** flash\
**Created:** [April 16, 2008, 8:32pm UTC](https://forum.kirupa.com/t/smooth-in-and-out-transition-tweens/257756 "2008-04-16T20:32:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![setzer9999](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@setzer9999](https://forum.kirupa.com/u/setzer9999)\
**Post date:** [April 16, 2008, 8:32pm UTC](https://forum.kirupa.com/t/smooth-in-and-out-transition-tweens/257756/1 "2008-04-16T20:32:19Z")

</div>

Hello, I am new to the forum and to flash. I hope I can learn a lot here. Thanks for reading.

I am trying to make a photo gallery that has smooth in and out tween animation transitions.

1. On frame 1 there is a button that looks like:

on(press){  
gotoAndPlay(2);  
}

1. On frame 2-10 there is a shape tween of a square getting bigger

2. On frame 10 there is a stop(); action

3. On frame 10 there is a button that looks like

on(press){  
gotoAndPlay(11);  
}

1. On frame 11-19 there is a shape tween of a square getting smaller

I want to add code to the button that tells the movie to finish the tween animation from frame 11-19 and then, once the movie reaches frame 19 to jump to frame 36.

The code has to be related to pressing the button on frame 10, not a global frame action on frame 19 because I want other buttons to tell the movie to play through frame 19 and jump to a different frame than 36.

I hope that all made sense. Thank you for considering helping me.
