# Simple Actionscript Question

**URL:** <https://forum.kirupa.com/t/simple-actionscript-question/14952>\
**Category:** flash\
**Created:** [March 4, 2003, 7:46pm UTC](https://forum.kirupa.com/t/simple-actionscript-question/14952 "2003-03-04T19:46:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisbees1](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chrisbees1](https://forum.kirupa.com/u/chrisbees1)\
**Post date:** [March 4, 2003, 7:46pm UTC](https://forum.kirupa.com/t/simple-actionscript-question/14952/1 "2003-03-04T19:46:28Z")

</div>

Hi, basically ive got a movie clip which is wider than the flash movie itself but i got two buttons on each end. Basically i want the first button to move the movie clip to the left 20pixels and the button on the right to move the movie clip to the right 20pixels.

I’d imagine there is a bit of actionscript that i can attach to each button to allow this to happen.

Thanks in advance, Chris

---

<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:** [March 5, 2003, 4:23am UTC](https://forum.kirupa.com/t/simple-actionscript-question/14952/2 "2003-03-05T04:23:30Z")

</div>

put this as on the left button:

on(release){  
mc.\_x -= 20;  
}

as for the right button:

on(release){  
mc.\_x -= 20;  
}

that’s all… font forget to name your movieclip instance name…mc
