# Animating a MC with script

**URL:** https://forum.kirupa.com/t/animating-a-mc-with-script/202782
**Category:** flash
**Created:** [October 4, 2006, 7:54pm UTC](https://forum.kirupa.com/t/animating-a-mc-with-script/202782 "2006-10-04T19:54:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edward\_bull](https://avatars.discourse-cdn.com/v4/letter/e/c2a13f/32.png) [@edward\_bull](https://forum.kirupa.com/u/edward_bull)
#### Post date: [October 4, 2006, 7:54pm UTC](https://forum.kirupa.com/t/animating-a-mc-with-script/202782/1 "2006-10-04T19:54:58Z")

</div>

Hi, I am trying to create a sliding photo gallery, this involves two buttons left and right. I have converted the photos to one movie clip so in effect i just want to animate a single object. At the moment the when you click the right arrow the clip jumps, i would like it to animate to a certain point, can anyone help, so far i have this code

on(press){

```
setProperty(this.gallery_mc, _x, +10);

```

Thanks in advance

}
