# Move movieclip

**URL:** <https://forum.kirupa.com/t/move-movieclip/164781>\
**Category:** Uncategorized\
**Created:** [October 4, 2005, 7:37pm UTC](https://forum.kirupa.com/t/move-movieclip/164781 "2005-10-04T19:37:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_elekes](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Terry\_elekes](https://forum.kirupa.com/u/Terry_elekes)\
**Post date:** [October 4, 2005, 7:37pm UTC](https://forum.kirupa.com/t/move-movieclip/164781/1 "2005-10-04T19:37:32Z")

</div>

I am trying to make the movieclip move to the right then when it gets to the end of the stage go back to the left. I tried different codes but still lost. here is the code I am using:  
on (release) {  
this.\_x = this.\_x+5;  
if (this.\_x\>=550){  
} else (this.\_x =this.\_x-5);  
}  
I am trying to make it go 5 pixels on(release) and the back 5 pixels on(release)  
when it gets to the edge of the stage.
