# Trouble with on(rollOver)... on Release it doesn't go on(rollOut) anymore!

**URL:** <https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418>\
**Category:** flash\
**Created:** [April 16, 2003, 4:17pm UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418 "2003-04-16T16:17:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericinho](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ericinho](https://forum.kirupa.com/u/ericinho)\
**Post date:** [April 16, 2003, 4:17pm UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/1 "2003-04-16T16:17:36Z")

</div>

Flash 5

i have a simple on rollOver action on a button. It triggers a MC in which there are two frames (one with the Over state and one with the Out state)

[AS]on (rollOver) {  
\_root.contentmc2.contentnav2.infobar.gotoAndPlay(2);  
}  
on (rollOut) {  
\_root.contentmc2.contentnav2.infobar.gotoAndPlay(1);  
}[/AS]

after that there is the on Release code bla bla…

and the RollOver works, as does the RollOut.

Unless I click the button while the RollOver is triggered (which is obviously always when you click a button with rollOver anim) and then it stays in the RollOver state, even though I actually rollOut.

The strange thing is that after that, when I rollOver one of the other buttons, the RollOut is being triggered on Over. That only lasts one time and then everything functions again as meant.

anyone knows how to solve this bug in 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:** [April 16, 2003, 7:41pm UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/2 "2003-04-16T19:41:55Z")

</div>

hmmm, it can’t be that I am the only one who encountered this problem… then again, I am unique then…hoorah… 😉

---

<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:** [April 16, 2003, 8:09pm UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/3 "2003-04-16T20:09:26Z")

</div>

I think you’re better off posting an example of this happening

---

<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:** [April 17, 2003, 4:31am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/4 "2003-04-17T04:31:36Z")

</div>

Hi ericinho , I need to know what actions have you put in frames 1 and 2 of the infobar mc.

---

<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:** [April 17, 2003, 6:40am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/5 "2003-04-17T06:40:45Z")

</div>

just a stop action on both frames of the infobar MC

---

<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:** [April 17, 2003, 6:48am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/6 "2003-04-17T06:48:30Z")

</div>

just add the same line from rollOut to the release event.

on (release) {  
…whatever code you have in here already…  
\_root.contentmc2.contentnav2.infobar.gotoAndPlay(1);  
}

no?

---

<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:** [April 17, 2003, 7:28am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/7 "2003-04-17T07:28:36Z")

</div>

spot on David.  
i came up with the same idea a few mins ago and indeed it works perfectly!  
Must be some karma-stuff that made you put your idea in my head :-p

thanks all!

---

<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:** [April 17, 2003, 7:40am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/8 "2003-04-17T07:40:19Z")

</div>

cool… I now have the power to sublette people’s brains from a distance. That rules! Now I just need to find Britney Spear’s mind in all this jumble of thoughts… …

. . Man. . it’s like trying to find a needle in a haystack. . . hmm. . maybe I should look for a hot girl with more mental capacity. 😛

---

<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:** [April 17, 2003, 9:39am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/9 "2003-04-17T09:39:01Z")

</div>

ooo :!: I think I misread the question 😉 gj david

---

<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:** [April 17, 2003, 10:40am UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/10 "2003-04-17T10:40:33Z")

</div>

I want you to tell me what actionscript code did you write for the first and the second Keyframe of the \_root.contentmc2.contentnav2.infobar movie clip (mc).:flower:

---

<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:** [April 17, 2003, 1:41pm UTC](https://forum.kirupa.com/t/trouble-with-on-rollover-on-release-it-doesnt-go-on-rollout-anymore/18418/11 "2003-04-17T13:41:17Z")

</div>

> \*Originally posted by ericinho \*  
> \*\*just a stop action on both frames of the infobar MC \*\*
