# Sound won't play?

**URL:** <https://forum.kirupa.com/t/sound-wont-play/104233>\
**Category:** Uncategorized\
**Created:** [March 13, 2004, 10:03pm UTC](https://forum.kirupa.com/t/sound-wont-play/104233 "2004-03-13T22:03:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)\
**Post date:** [March 13, 2004, 10:03pm UTC](https://forum.kirupa.com/t/sound-wont-play/104233/1 "2004-03-13T22:03:35Z")

</div>

I am redoing quite a few buttons into mc’s to be able to get rid of the cursor changing into a handcursor. The buttons all have a sound on them onRollover. When I put the script on the mc’s instead, the sound doesn’t play.  
Here 's the code on the mc (on a separate layer)that holds all the buttons:  
[AS]this.createEmptyMovieClip(“butempty”, 1);  
myButmusic = new Sound(“butempty”);[/AS]  
and the code on the button/mc:  
[AS]onClipEvent (load) {  
this.useHandCursor=false;  
}  
on (rollOver) {  
setProperty(this, \_alpha, 0);  
myButmusic.attachSound(“but2”);  
myButmusic.setVolume(50);  
myButmusic.start(0.1);  
}  
on (rollOut) {  
setProperty(this, \_alpha, 100);  
}[/AS]  
I have changed the code to refer to “myButmusic” to abslolute (\_root.themenu.myButmusic.etc) I have tried the above code, I have tried parent, but nothing changes. the usehandcursor thing and the set Property work without problems.  
What am I doing wrong?:trout:
