# Question about Moving an MC

**URL:** <https://forum.kirupa.com/t/question-about-moving-an-mc/210906>\
**Category:** flash\
**Created:** [December 23, 2006, 6:46pm UTC](https://forum.kirupa.com/t/question-about-moving-an-mc/210906 "2006-12-23T18:46:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elementss](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/elementss/32/1698_2.png) [@Elementss](https://forum.kirupa.com/u/Elementss)\
**Post date:** [December 23, 2006, 6:46pm UTC](https://forum.kirupa.com/t/question-about-moving-an-mc/210906/1 "2006-12-23T18:46:28Z")

</div>

How can i limit the movment of an mc to a specific Root?

i mean… like a road or some thing like that…  
me mc is moving simply by pressing the arrows…  
for instance…

on("\<Right\>"){  
this.\_y += 5;  
}  
and i do that for all the arrows 🙂

thanks in advance 🙂
