# On (rollOver) not reliable

**URL:** https://forum.kirupa.com/t/on-rollover-not-reliable/176049
**Category:** Uncategorized
**Created:** [January 19, 2006, 10:22pm UTC](https://forum.kirupa.com/t/on-rollover-not-reliable/176049 "2006-01-19T22:22:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dmog](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@dmog](https://forum.kirupa.com/u/dmog)
#### Post date: [January 19, 2006, 10:22pm UTC](https://forum.kirupa.com/t/on-rollover-not-reliable/176049/1 "2006-01-19T22:22:43Z")

</div>

[FONT=Verdana]Hi there, this always bugs the sh\*t out of me. I have three buttons. Each button controls an MC on rollover and rollout. Effectively, with each button rollover, the screen fades to black EXCEPT for the relevant button.[/FONT]

[FONT=Verdana]The code on my button looks like this:[/FONT]

```auto
 
on (rollOver) {
 this.MyDamnmc.play(darkness_comes);
}
on (rollOut) {
 this.MyDamnmc.play(darkness_fades);

```

So you would expect that when I rolled off the button, MyDamnmc would then play the darkness\_fades label and return the screen to normal.

Problem is, it doesn’t usually work like that. All three buttons have similar code, relevant to their own movie clips. What ends up happening is some MC’s never receiv the rollOut instruction and the screen is left in blackness, even after rollOut. Is there any way to do it so that Flash ALWAYS performs the rollOut command? Or is this just wishful thinking?

I’m not a big code head - so any help is appreciated.

Dylan
