# Problem with 3 functions button \> on (rollOver) on (rollOut) on (rollOut)

**URL:** <https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119>\
**Category:** Uncategorized\
**Created:** [October 24, 2002, 5:10am UTC](https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119 "2002-10-24T05:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![multimediamkt](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@multimediamkt](https://forum.kirupa.com/u/multimediamkt)\
**Post date:** [October 24, 2002, 5:10am UTC](https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119/1 "2002-10-24T05:10:49Z")

</div>

on (rollOver) {  
tellTarget ("\_root.maitre\_reception") {  
gotoAndPlay (300);  
}  
}  
on (rollOut) {  
tellTarget ("\_root.maitre\_reception") {  
gotoAndPlay (1);  
}  
}  
on (rollOut) {  
tellTarget ("\_root.maitre\_reception") {  
gotoAndPlay (320);  
}  
}

. … … … … … … … . … … … … … … …

A Button assigned with action above is used to control movie  
clip , maitre\_reception , when mouse is rolled over and rolled out ;

that works fine except that has the inconvenient to force me to  
maintain the mouse over the button after releasing the click  
in order to work - by obvius reasons because if I click and  
roll out the mouse cursor it occurs the second condition:

on (rollOut) {  
tellTarget ("\_root.maitre\_reception") {  
gotoAndPlay (1);

causing the movie to go and play 1 before movie goes and  
play 320 ;

Is there a way to avoid that ?

(to ensure only one click makes it  
to play frame 320 even if cursos has been rolled out )

. … … … … … … … . … … … … … … …

---

<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:** [October 24, 2002, 6:04am UTC](https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119/2 "2002-10-24T06:04:31Z")

</div>

You can’t have 2 rollOut functions.

There is

RollOver  
RollOut  
press  
dragOver  
dragOut  
release  
releaseOutside  
and the Keypresses.  
(I think that is it)

You are only allowed to have 1 instance of a function (unless it is a keypress, as long as you assign a different key… it will work).

By having 2 rollOut functions you are confusing Flash.

---

<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:** [October 24, 2002, 7:15am UTC](https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119/3 "2002-10-24T07:15:54Z")

</div>

Lol … sometimes I use to invent things

---

<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:** [October 24, 2002, 4:13pm UTC](https://forum.kirupa.com/t/problem-with-3-functions-button-on-rollover-on-rollout-on-rollout/7119/4 "2002-10-24T16:13:33Z")

</div>

Oh yeah… I forgot to mention that you can combine some if they do the same action…

like this…

```auto
on (rollOut, dragOut) {
_root.yourClip.gotoAndPlay(frame#);
}

```
