# How to make \_x movement more fluid?

**URL:** https://forum.kirupa.com/t/how-to-make--x-movement-more-fluid/315378
**Category:** Uncategorized
**Created:** [October 25, 2010, 1:27am UTC](https://forum.kirupa.com/t/how-to-make--x-movement-more-fluid/315378 "2010-10-25T01:27:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pauline1](https://avatars.discourse-cdn.com/v4/letter/p/e68b1a/32.png) [@pauline1](https://forum.kirupa.com/u/pauline1)
#### Post date: [October 25, 2010, 1:27am UTC](https://forum.kirupa.com/t/how-to-make--x-movement-more-fluid/315378/1 "2010-10-25T01:27:02Z")

</div>

hello,  
I would like to ask for help with this problem: I have made xml gallery with thumbnails, following kirupa’s tutorial ([http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)). Everything works perfect, but I need to add some more interesting movement on horizontal scroller of thumbnails. For example, thumbnail starts to move quicklier, then they slow down…etc. How can I make it? With some ease, tween class…?  
please, if anybody can help , I would apreciate a lot  
Thank you very much in advance

here is the code for scroller of thumbnail\_mc:

```auto
function thumbNailScroller() {
	// thumbnail code! 
	this.createEmptyMovieClip("tscroller", this.getNextHighestDepth());
	scroll_speed =20;
	tscroller.onEnterFrame = function() {
		if ((_ymouse>=thumbnail_mc._y) && (_ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
			if ((_xmouse>=(hit_right._x-60)) && (thumbnail_mc.hitTest(hit_right))) {
				thumbnail_mc._x -= scroll_speed;
				}
                             else if ((_xmouse<=(hit_left._x+60)) && (thumbnail_mc.hitTest(hit_left))) {
				thumbnail_mc._x += scroll_speed;
				}
		} else {
			delete tscroller.onEnterFrame;
		}
	};
}

```
