# Continuous horizontal movement with AS?

**URL:** https://forum.kirupa.com/t/continuous-horizontal-movement-with-as/55366
**Category:** flash
**Created:** [June 23, 2004, 10:23am UTC](https://forum.kirupa.com/t/continuous-horizontal-movement-with-as/55366 "2004-06-23T10:23:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)
#### Post date: [June 23, 2004, 10:23am UTC](https://forum.kirupa.com/t/continuous-horizontal-movement-with-as/55366/1 "2004-06-23T10:23:30Z")

</div>

Hi!  
Kirupa has a tutorial on continuous movement of clouds (motion tweening).  
Does anybody know about a AS code for this kind of movement?  
I know we can move the MC from A to B, but for continuous movement what is the condition if we get to a final point?  
[AS]  
…  
if (this.\_x \<= 100) {  
this.\_x += speed;  
}  
What is the code here if this.\_x IS 100? How get back to the start point? without gap in the movie?  
[/AS]

Thanks,  
mx-guest2004 🙂
