# Movement using actionscript

**URL:** <https://forum.kirupa.com/t/movement-using-actionscript/139793>\
**Category:** Uncategorized\
**Created:** [March 5, 2005, 6:35pm UTC](https://forum.kirupa.com/t/movement-using-actionscript/139793 "2005-03-05T18:35:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@Pablo](https://forum.kirupa.com/u/Pablo)\
**Post date:** [March 5, 2005, 6:35pm UTC](https://forum.kirupa.com/t/movement-using-actionscript/139793/1 "2005-03-05T18:35:50Z")

</div>

I am pretty new at flash so here is my dilemma.

So i lets say using this actionscript:  
onClipEvent(enterFrame) {  
speed = 1;  
this.\_x += speed;  
}

How do I make it so when I click on an image, it uses actionscript to move it a certin amount and then stop where I want it to.

Thanks.
