# Easing with AS not quite working

**URL:** <https://forum.kirupa.com/t/easing-with-as-not-quite-working/164455>\
**Category:** flash\
**Created:** [October 1, 2005, 1:12pm UTC](https://forum.kirupa.com/t/easing-with-as-not-quite-working/164455 "2005-10-01T13:12:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onemhunki](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Post date:** [October 1, 2005, 1:12pm UTC](https://forum.kirupa.com/t/easing-with-as-not-quite-working/164455/1 "2005-10-01T13:12:15Z")

</div>

Folks,

Any of you able to check my code. I’ve got a map with movement controls and my left/right easing not quite working correctly,

```auto

move_left.onRelease = function() {
	endXpos = map._x + 20;
}
move_right.onRelease = function() {
	endXpos = map._x - 20;
}
map.onEnterFrame = function(){
	map._x = (endXpos-map._x)/speed;
}

```

Help as ever appreciated

Munki
