# Smooth transition on click

**URL:** https://forum.kirupa.com/t/smooth-transition-on-click/33753
**Category:** Uncategorized
**Created:** [October 23, 2003, 3:39am UTC](https://forum.kirupa.com/t/smooth-transition-on-click/33753 "2003-10-23T03:39:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dr\_vroeg](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dr\_vroeg](https://forum.kirupa.com/u/dr_vroeg)
#### Post date: [October 23, 2003, 3:39am UTC](https://forum.kirupa.com/t/smooth-transition-on-click/33753/1 "2003-10-23T03:39:52Z")

</div>

I am trying to get a movie to move along the x axis by clicking on a button…that is the easy part, what I couldn’t figure out is how to make it so the movie appears to “slide” “glide” whatever…into the next position  
thanks!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2003, 3:45am UTC](https://forum.kirupa.com/t/smooth-transition-on-click/33753/2 "2003-10-23T03:45:35Z")

</div>

This might help you  
[http://www.kirupa.com/developer/mx/ASmovement.htm](http://www.kirupa.com/developer/mx/ASmovement.htm)  
or maybe this:  
[http://www.kirupa.com/developer/flash5/slidingmenu.htm](http://www.kirupa.com/developer/flash5/slidingmenu.htm)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2003, 5:32pm UTC](https://forum.kirupa.com/t/smooth-transition-on-click/33753/3 "2003-10-23T17:32:45Z")

</div>

```auto

MovieClip.prototype.slideX = function(tX){
this.onEnterFrame = function(){
this._x > tX-1 && this._x < tX+1 ? delete this.onEnterFrame : this._x = tX-(tX-this._x)/1.2;
}
}
// Usage:
yourmovieclip.easeX(250);

```
