# Basic motion with actionscript

**URL:** <https://forum.kirupa.com/t/basic-motion-with-actionscript/222281>\
**Category:** flash\
**Created:** [April 12, 2007, 7:47am UTC](https://forum.kirupa.com/t/basic-motion-with-actionscript/222281 "2007-04-12T07:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasu](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@nasu](https://forum.kirupa.com/u/nasu)\
**Post date:** [April 12, 2007, 7:47am UTC](https://forum.kirupa.com/t/basic-motion-with-actionscript/222281/1 "2007-04-12T07:47:45Z")

</div>

It’s been a long time since I’ve done any work with actionscript, and alas I’ve forgotten nearly everything. I’ve tried to look for a tutorial that would explain basic animation with actionscript, but the one that I found on Kirupa was no longer there.

Basically I’d like to do this:

On the stage I have a movieclip and I’d like the movieclip to move along the x-axis to a certain point and then back to the starting point again. The moving speed of the movieclip should also be adjustable.

I know how to do this with motion tween, but I’d really like to know how to do this with actionscript.

Thanks a lot in advance.
