# Roll over button problem ASAP

**URL:** <https://forum.kirupa.com/t/roll-over-button-problem-asap/189108>\
**Category:** Uncategorized\
**Created:** [May 13, 2006, 8:38pm UTC](https://forum.kirupa.com/t/roll-over-button-problem-asap/189108 "2006-05-13T20:38:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![epicwolfboy](https://avatars.discourse-cdn.com/v4/letter/e/f07891/32.png) [@epicwolfboy](https://forum.kirupa.com/u/epicwolfboy)\
**Post date:** [May 13, 2006, 8:38pm UTC](https://forum.kirupa.com/t/roll-over-button-problem-asap/189108/1 "2006-05-13T20:38:01Z")

</div>

hi, i’m having a problem with my roll over sound

\*\* heres whats up:\*\* the sound plays the 1st time its rolledover but not second time.  
  
\*\* heres what i have:\*\* 4 buttons with 4 sounds

\*\* code: \*\*

on frame #

///////Sound A///////  
\*\* \_root.SchlubS = new Sound();  
\_root.SchlubS.attachSound(“Schlub01”);\*\*  
///////Sound B///////  
\*\* \_root.CiavoS = new Sound();  
\_root.CiavoS.attachSound(“Ciavo01”);\*\*  
///////Sound C///////  
\*\* \_root.ChimeS = new Sound();  
\_root.ChimeS.attachSound(“chime01”);\*\*  
///////Sound D///////  
\*\* \_root.DoorbellS = new Sound();  
\_root.DoorbellS.attachSound(“Doorbell01”);\*\*

on Button A,B,C,and D(just different names where (SchlubS) is)

///////Sound A///////  
**on (rollOver) {  
if (\_root.playing != 1) {  
if (SchlubSPosition == null) {  
SchlubSPosition = 0;  
}  
\_root.SchlubS.start(schlubPosition, 0);  
\_root.playing = 1;  
} else {  
if (\_root.playing == 1) {  
SchlubSPosition = \_root.SchlubS.position/1000;  
\_root.SchlubS.stop();  
\_root.playing = 0;  
}  
}  
}**

\*\* what i want to happen:\*\* when you roll ove Button A it plays untill you enter B,C, or D than that sound plays. but… i dont want C or D to loop, just A and B

Please help me , thank you
