# Movieclip mouse panning - almost there!

**URL:** <https://forum.kirupa.com/t/movieclip-mouse-panning-almost-there/272742>\
**Category:** Uncategorized\
**Created:** [October 8, 2008, 4:02am UTC](https://forum.kirupa.com/t/movieclip-mouse-panning-almost-there/272742 "2008-10-08T04:02:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlyttle](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nlyttle](https://forum.kirupa.com/u/nlyttle)\
**Post date:** [October 8, 2008, 4:02am UTC](https://forum.kirupa.com/t/movieclip-mouse-panning-almost-there/272742/1 "2008-10-08T04:02:31Z")

</div>

it’s late, and I’m exhausted… for some reason this isn’t panning the entire length of my movieclip (it’s length is dynamic). This is using tweener for the easing…

```auto

moveList = function () {
	mousePosY = mcPan.listNews.mask._ymouse;
	maskHeight = mcPan.listNews.mask._height;
	maskPosY = mcPan.listNews.mask._y;
	moveClip = mcPan.listNews.list;

	if (mcPan.listNews.mask.hitTest(_root._xmouse, _root._ymouse, false)) {
		var ypercent = mousePosY/maskHeight;
		Tweener.addTween(moveClip,{_y:maskPosY-moveClip._height*ypercent, time:1, transition:'easeOutExpo'});
		updateAfterEvent();
	}
}

```
