# Movie clip that plays in reverse on rollout

**URL:** <https://forum.kirupa.com/t/movie-clip-that-plays-in-reverse-on-rollout/279662>\
**Category:** flash\
**Created:** [January 17, 2009, 2:42am UTC](https://forum.kirupa.com/t/movie-clip-that-plays-in-reverse-on-rollout/279662 "2009-01-17T02:42:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chockybickyman](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Post date:** [January 17, 2009, 2:42am UTC](https://forum.kirupa.com/t/movie-clip-that-plays-in-reverse-on-rollout/279662/1 "2009-01-17T02:42:17Z")

</div>

I have the following code which is applied to the movieclip

on(rollOver){

```
_root.over = true;

_root.off = false;

```

}

on(rollOut){

```
_root.over = false;

_root.off = true;

```

}

onClipEvent(enterFrame){

```
if ((_root.over)&&(this._currentframe &lt;= 10)){

    this.gotoAndStop(this._currentframe + 1);

}

if ((_root.off)&&(this._currentframe &gt;= 1)){

    this.gotoAndStop(this._currentframe - 1);

}

```

}

I am trying to target the instance for the movie clip as when I apply the code it just plays all the movie clips rather than the instances of the buttons. Could you help me edit the code to target the movie clip that I apply the code too.
