# Horizontal movement loop

**URL:** https://forum.kirupa.com/t/horizontal-movement-loop/92535
**Category:** Uncategorized
**Created:** [October 18, 2003, 1:31pm UTC](https://forum.kirupa.com/t/horizontal-movement-loop/92535 "2003-10-18T13:31:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bigteeth](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bigteeth](https://forum.kirupa.com/u/bigteeth)
#### Post date: [October 18, 2003, 1:31pm UTC](https://forum.kirupa.com/t/horizontal-movement-loop/92535/1 "2003-10-18T13:31:34Z")

</div>

First of all I want to thank you Kirupa for all the wonderful tutorials. I am just learning actionscript, and your site has been able to clarify a number of things for me. With that said my question is this:

In your tutorial you used the following code to create horizontal movement:[AS]onClipEvent(enterFrame) { speed = 10; this.\_x += speed; }[/AS]

how would you create a continuous loop of this movement (ie. make the movie move horizontally across the screen over and over).

Sorry if this is an insultingly simple question.
