# Syntax help

**URL:** <https://forum.kirupa.com/t/syntax-help/2751>\
**Category:** Uncategorized\
**Created:** [April 20, 2002, 2:03am UTC](https://forum.kirupa.com/t/syntax-help/2751 "2002-04-20T02:03:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 20, 2002, 2:03am UTC](https://forum.kirupa.com/t/syntax-help/2751/1 "2002-04-20T02:03:07Z")

</div>

I’m trying to write the Actionscript code that will move my MC to a certain point then reset. In other words, I want my MC to move left until it reaches -650 of the X position then start all over again from 750 of the X position.\r\rHere’s the code I’ve written which doesn’t work:\r\ronClipEvent (enterFrame) {\r \_x-=2;\r&nbsp &nbsp &nbsp &nbsp }\rif (\_x =-670\r \_X = 740\r\rAny aid would be appreciated immensely.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2002, 4:59am UTC](https://forum.kirupa.com/t/syntax-help/2751/2 "2002-04-21T04:59:27Z")

</div>

try this:\ronClipEvent (enterFrame) {\r\_x-=2;\rif(\_x\<=-670){\r\_x=740;\r}\r}\r\r:) \rjeremy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2002, 5:16am UTC](https://forum.kirupa.com/t/syntax-help/2751/3 "2002-04-21T05:16:24Z")

</div>

Why don’t you read the answer to your previous post before posting this again? 't was already answered!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2002, 2:14pm UTC](https://forum.kirupa.com/t/syntax-help/2751/4 "2002-04-21T14:14:27Z")

</div>

no he posted twice in the same day, accidently (i am guess since they are 3 minutes apart, must have hit the button twice). And Sinf decided to answer in this thread instead of the one that everyone else already commented in…
