# Movieclip onRollOver and onPress confusion

**URL:** <https://forum.kirupa.com/t/movieclip-onrollover-and-onpress-confusion/176977>\
**Category:** Uncategorized\
**Created:** [January 28, 2006, 7:47pm UTC](https://forum.kirupa.com/t/movieclip-onrollover-and-onpress-confusion/176977 "2006-01-28T19:47:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leira](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@leira](https://forum.kirupa.com/u/leira)\
**Post date:** [January 28, 2006, 7:47pm UTC](https://forum.kirupa.com/t/movieclip-onrollover-and-onpress-confusion/176977/1 "2006-01-28T19:47:21Z")

</div>

The complexity of this problem baffles me to no end. Looks simple enough but I don’t know why it just won’t work.

I have a movieclip that would act as button. Inside the movieclip, I have labeled frames for the up and down states (“gray” and “red”, respectively). However, when press on the movieclip, I want it to go to “press” frame and stay on “press”, until I rollover it, then it goes back to “gray”.

The rollover/rollout functions work, the press function does not. When my mouse leaves the mc, it goes back to it’s gray state, because I also have a rollover function going on. Is there anyway to control this?

This is my code, attached is the fla. Appreciate any help!

```auto

mc1.onRollOver = function() {
 mc1.gotoAndStop("red");
};
mc1.onRollOut = function() {
 mc1.gotoAndStop("gray");
};
mc1.onPress = function() {
 mc1.gotoAndPlay("press");
};

```
