# Movement using actionscript

**URL:** <https://forum.kirupa.com/t/movement-using-actionscript/56010>\
**Category:** Uncategorized\
**Created:** [June 29, 2004, 8:28pm UTC](https://forum.kirupa.com/t/movement-using-actionscript/56010 "2004-06-29T20:28:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amdorsey](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@amdorsey](https://forum.kirupa.com/u/amdorsey)\
**Post date:** [June 29, 2004, 8:28pm UTC](https://forum.kirupa.com/t/movement-using-actionscript/56010/1 "2004-06-29T20:28:15Z")

</div>

How can I move a movieclip when a button is clicked, tweening it?

I can change the position of the movieclip successfully. But I can not figure how to animate the coordinate change!

Here is the basic actionscript…

on (release) {  
\_parent.bagHolder.globalBags.allBags.\_x=10.5  
}

This moves the movieclip (allBags) to \_x=10.5  
THen I have a button that moves the MC to -100.5

How can I tween it?

Thanks,
