# Swaping \_x / \_y values with easing

**URL:** <https://forum.kirupa.com/t/swaping--x--y-values-with-easing/44619>\
**Category:** Uncategorized\
**Created:** [March 5, 2004, 5:32pm UTC](https://forum.kirupa.com/t/swaping--x--y-values-with-easing/44619 "2004-03-05T17:32:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![333944](https://avatars.discourse-cdn.com/v4/letter/3/bbe5ce/32.png) [@333944](https://forum.kirupa.com/u/333944)\
**Post date:** [March 5, 2004, 5:32pm UTC](https://forum.kirupa.com/t/swaping--x--y-values-with-easing/44619/1 "2004-03-05T17:32:29Z")

</div>

Hey y’all,  
Just was wondering if anyone had any idea on how you’d swap; after storing, \_x /\_y position values of movie clips on button instances ie. onClick … Let’s say I had four 4 movies and 3 buttons the (first movie looking like a button but is active so it’s not clickable at that point) mc1, mc2, mc3, mc4 when the movie loads they are in that order…

When the user clicks mc2 or 3 or 4 it slides into the \_x position of mc1, and mc1 slides into the \_x pos. where mc2/3/ or 4 just was (they swap)… then the user clicks mc4 or 3 or 1 and it swaps pos. with mc2 and so on… all this done with a smooth easing transistion…

an example similar to this is the navigation module on James Begera’s web site:  
[http://www.webagent007.com](http://www.webagent007.com)  
keep on Contact!  
:te:
