# Movieclip on button question

**URL:** <https://forum.kirupa.com/t/movieclip-on-button-question/161409>\
**Category:** Uncategorized\
**Created:** [September 3, 2005, 6:41pm UTC](https://forum.kirupa.com/t/movieclip-on-button-question/161409 "2005-09-03T18:41:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpr](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mpr](https://forum.kirupa.com/u/mpr)\
**Post date:** [September 3, 2005, 6:41pm UTC](https://forum.kirupa.com/t/movieclip-on-button-question/161409/1 "2005-09-03T18:41:23Z")

</div>

I have a button with a movieclip on it so it plays on the OVER state. What I’d like it to do is simply play backwards when you roll the mouse off it. I’ve tried the following code in my movie clip:

```auto

onClipEvent (enterFrame) {
  if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
	  this.nextFrame();
  } else {
	  this.prevFrame();
  }
}

```

but it doesn’t make sense to do that because the button on the stage is not going to read what’s in the movieclip that’s on the button. At least I don’t _think_ so. It’s a bit confusing to me.

[Here is the .fla](http://www.geocities.com/mpronnei/main-movie.fla).

Any help would be appreciated!

Cheers
