# Button sound and link work but cuts out

**URL:** <https://forum.kirupa.com/t/button-sound-and-link-work-but-cuts-out/9901>\
**Category:** flash\
**Created:** [December 20, 2002, 4:13pm UTC](https://forum.kirupa.com/t/button-sound-and-link-work-but-cuts-out/9901 "2002-12-20T16:13:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiek739](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Shiek739](https://forum.kirupa.com/u/Shiek739)\
**Post date:** [December 20, 2002, 4:13pm UTC](https://forum.kirupa.com/t/button-sound-and-link-work-but-cuts-out/9901/1 "2002-12-20T16:13:03Z")

</div>

Have a FlashMX button.  
Inserted sounds on the button timeline for “over” and “hit/down”.  
Inserted

on (release) {  
getURL(“kids\_zone.htm”,"\_self");  
}

on Frame 1 of button.

This all works fine, the sounds go off and the link works.

The problem is this:

The sound for the “hit” cuts off before finishing, since the linked page takes hardly any time to load. I’d like the entire sound to play. If I hold down the button, the entire sound plays through, and as soon as I release the button the link takes me to the next page. That’s what I’d expect to happen from the way I’ve set it up.

How do I modify it to play the whole sound (just 2 seconds) before displaying the linked page?

---

<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:** [December 20, 2002, 4:20pm UTC](https://forum.kirupa.com/t/button-sound-and-link-work-but-cuts-out/9901/2 "2002-12-20T16:20:52Z")

</div>

You had the sound set to “event” in the properties panel so I switched it to “start” so it should work now. Here’s your fla. =)

---

<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:** [December 20, 2002, 5:50pm UTC](https://forum.kirupa.com/t/button-sound-and-link-work-but-cuts-out/9901/3 "2002-12-20T17:50:37Z")

</div>

Oh, yeah. That makes sense.  
Sounds like a plan, but still isn’t working.  
I just get a blip unless I hold down the mouse until the sound  
has finished. As soon as I release, the other page loads up, regardless of whether the sound is finished or not.

Now I know that its going to work differently when its actually on a website rather than on my local computer. There will be some delay inherent to downloading, but once its cached, a return trip will still zip past the sound.

Thanks. I’ll keep poking at it. 🙂
