# About RollOut

**URL:** https://forum.kirupa.com/t/about-rollout/5915
**Category:** flash
**Created:** [September 25, 2002, 10:57pm UTC](https://forum.kirupa.com/t/about-rollout/5915 "2002-09-25T22:57:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Wolverine](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@Wolverine](https://forum.kirupa.com/u/Wolverine)
#### Post date: [September 25, 2002, 10:57pm UTC](https://forum.kirupa.com/t/about-rollout/5915/1 "2002-09-25T22:57:06Z")

</div>

Hi everyone.

I got a problem. I want to make this button I see on many pages.

When I put the mouse over it, it transform to something else (this is not a problem, it’s easily done)

When I REMOVE the mouse from it, It transforms BACK to the original shape??

I haven’t managed to figure this out, though I experimented alot with RollOut and stuff…

I’d appreciate if someone would help me out here!

Thanks!

---

<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: [September 25, 2002, 11:10pm UTC](https://forum.kirupa.com/t/about-rollout/5915/2 "2002-09-25T23:10:05Z")

</div>

make the button an MC with the animation in it… then use a hit test to see if the mouse is over it and advance frames… if the hit test is false have it advance to previous frames, like this:

```php

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

```

There are other ways to do more complicated things… but for what you want this should be fine! Good Luck!!

Peace

---

<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: [September 25, 2002, 11:22pm UTC](https://forum.kirupa.com/t/about-rollout/5915/3 "2002-09-25T23:22:03Z")

</div>

Hey Ryall, with MX you can put buttons handlers to clips…

And Wolverine, did you check the advanced rollover tutorial? It might help you.

pom :asian:

---

<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: [September 25, 2002, 11:25pm UTC](https://forum.kirupa.com/t/about-rollout/5915/4 "2002-09-25T23:25:56Z")

</div>

Wonderful, just wonderful. Worked exactly as I wanted it to! Had no idea Flash could play movies “backward”, as it seem to do with the prev.frame command… awsome.

Thanks alot for helping out! Back to work! 🙂

---

<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: [November 20, 2002, 8:53pm UTC](https://forum.kirupa.com/t/about-rollout/5915/5 "2002-11-20T20:53:11Z")

</div>

I have been trying to use this hitTest method of rollover to control other clips but I have been getting problems. Basically I would like another clip to act as the hit area of sorts, and I figured that i would be able to replace:

this.hitTest(\_…

with

MyClip.hitTest(\_…

but I get errors, can someone tell me what I’m doing wrong?
