# As movement help

**URL:** <https://forum.kirupa.com/t/as-movement-help/46582>\
**Category:** flash\
**Created:** [March 25, 2004, 9:31pm UTC](https://forum.kirupa.com/t/as-movement-help/46582 "2004-03-25T21:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tucker](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@tucker](https://forum.kirupa.com/u/tucker)\
**Post date:** [March 25, 2004, 9:31pm UTC](https://forum.kirupa.com/t/as-movement-help/46582/1 "2004-03-25T21:31:52Z")

</div>

okay, im using the movent using actions script with this code:  
onClipEvent(enterFrame) {  
speed = 1;  
this.\_x += speed;  
}

but, i want to make it so if the object gets to the end of the stage, it goes back to start… how can i do this?

and then, i want to make it so when u click it, it blows up, so when u click it, it switches movie clips. Any idea how?

thanks in advance
