# Image Pan Movement Actionscript

**URL:** https://forum.kirupa.com/t/image-pan-movement-actionscript/284565
**Category:** flash
**Created:** [March 20, 2009, 10:37am UTC](https://forum.kirupa.com/t/image-pan-movement-actionscript/284565 "2009-03-20T10:37:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![2w1w2w](https://avatars.discourse-cdn.com/v4/letter/2/5fc32e/32.png) [@2w1w2w](https://forum.kirupa.com/u/2w1w2w)
#### Post date: [March 20, 2009, 10:37am UTC](https://forum.kirupa.com/t/image-pan-movement-actionscript/284565/1 "2009-03-20T10:37:42Z")

</div>

Hi, could someone help me please. I got the following Action Script for my image-movement. How can i make the movement to slow down at the end? Thx for your help!

drag = “/dragControl”;

/:w = getProperty("/nav", \_width);  
/:xPos = getProperty(drag, \_x);  
/:xPos = /:xPos-640;  
setProperty("/nav", \_x, getProperty("/nav", \_x)-(/:xPos/92));  
if (Number(getProperty("/nav", \_x))\<Number(-(/:w/2))) {  
setProperty("/nav", \_x, 0.01);  
} else if (Number(getProperty("/nav", \_x))\>710) {  
setProperty("/nav", \_x, 710);  
} else if (Number(getProperty("/nav", \_x))\<580) {  
setProperty("/nav", \_x, 580);  
}
