# Rollover buttons

**URL:** <https://forum.kirupa.com/t/rollover-buttons/15225>\
**Category:** Uncategorized\
**Created:** [March 12, 2003, 12:45am UTC](https://forum.kirupa.com/t/rollover-buttons/15225 "2003-03-12T00:45:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksuperson](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@ksuperson](https://forum.kirupa.com/u/ksuperson)\
**Post date:** [March 12, 2003, 12:45am UTC](https://forum.kirupa.com/t/rollover-buttons/15225/1 "2003-03-12T00:45:03Z")

</div>

i was wondering how to make the effects of a rollover button to go away when you rollover another button but only then. how would i go about that? thanks:cowboy:

---

<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:** [March 12, 2003, 1:45am UTC](https://forum.kirupa.com/t/rollover-buttons/15225/2 "2003-03-12T01:45:20Z")

</div>

You can try something like this. =)

---

<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:** [March 12, 2003, 1:47am UTC](https://forum.kirupa.com/t/rollover-buttons/15225/3 "2003-03-12T01:47:41Z")

</div>

instead on making the button a button, make it a movie clip with normal, over etc states(by keyframing). Then overlay a button with nothing else except the hit keyframe filled (hotspot). Add some actionscript code on the invisible button that plays certain frames of the button movie depending on rollover actions. That way you can leave the “button” in an rollover state until you move to the next button.  
You’ll need a bit of actionscript knowledge in order to get the first button to the normal state when the second button is rolled over.  
It’s not particularly easy, but it is do-able.

---

<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:** [March 12, 2003, 2:01am UTC](https://forum.kirupa.com/t/rollover-buttons/15225/4 "2003-03-12T02:01:44Z")

</div>

how could i put that code that electronicgeek gave me into this:

on (rollOver) {  
tellTarget ("/ocean1") {  
gotoAndPlay (“start”);  
}  
}  
on (rollOver) {  
var colorful = new Color("\_root.ball");  
colorful.setRGB(0xcc9933);  
}  
on (rollOut) {  
tellTarget ("/ocean1") {  
gotoAndPlay (“continue”);  
}  
}  
on (dragOver, dragOut, keyPress “d”) {  
tellTarget ("/arrow/downarrow") {  
gotoAndPlay (2);  
}  
}  
on (release) {  
getURL (“[http://ksuvega.tripod.com/index.htm](http://ksuvega.tripod.com/index.htm)”);  
}
