# Help with actionscript to make movement to loop

**URL:** <https://forum.kirupa.com/t/help-with-actionscript-to-make-movement-to-loop/46381>\
**Category:** Uncategorized\
**Created:** [March 24, 2004, 12:27am UTC](https://forum.kirupa.com/t/help-with-actionscript-to-make-movement-to-loop/46381 "2004-03-24T00:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmb597](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jmb597](https://forum.kirupa.com/u/jmb597)\
**Post date:** [March 24, 2004, 12:27am UTC](https://forum.kirupa.com/t/help-with-actionscript-to-make-movement-to-loop/46381/1 "2004-03-24T00:27:35Z")

</div>

Hi, I am doing a really simple flash piece and was wondering if someone could help me real quick…all I want is my circle to go across the page and to keep looping. My circle is moving great with this code:

onClipEvent(enterFrame) {  
speed = 9;  
this.\_x += speed;  
}

what do I add to make it loop? Thanks!!!
