# Move a MC with LEFT and RIGHT Buttons AND STOP when it should

**URL:** https://forum.kirupa.com/t/move-a-mc-with-left-and-right-buttons-and-stop-when-it-should/296707
**Category:** flash
**Created:** [September 18, 2009, 4:47pm UTC](https://forum.kirupa.com/t/move-a-mc-with-left-and-right-buttons-and-stop-when-it-should/296707 "2009-09-18T16:47:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dnord](https://avatars.discourse-cdn.com/v4/letter/d/9f8e36/32.png) [@dnord](https://forum.kirupa.com/u/dnord)
#### Post date: [September 18, 2009, 4:47pm UTC](https://forum.kirupa.com/t/move-a-mc-with-left-and-right-buttons-and-stop-when-it-should/296707/1 "2009-09-18T16:47:40Z")

</div>

I know everyone has wrote this a hundred times,  
BUT I just can’t get it to work

I have a main content area called MC that is very wide  
Then a mask around the area I want to see of the MC

I have two buttons set up below the mask for LEFT and RIGHT

How to I make those buttons move the main content, and stop when It gets to the end of the masked area so you dont just keep scrolling

ALL I HAVE in my code right now, is attached the left and right buttons—  
on(release){  
MC.\_y = (MC.\_y)-50;  
}

is there more to it than that?  
How do I stop it?

HELP!
