# How to stop music together with the animation

**URL:** <https://forum.kirupa.com/t/how-to-stop-music-together-with-the-animation/188480>\
**Category:** Uncategorized\
**Created:** [May 8, 2006, 10:43am UTC](https://forum.kirupa.com/t/how-to-stop-music-together-with-the-animation/188480 "2006-05-08T10:43:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![legine](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@legine](https://forum.kirupa.com/u/legine)\
**Post date:** [May 8, 2006, 10:43am UTC](https://forum.kirupa.com/t/how-to-stop-music-together-with-the-animation/188480/1 "2006-05-08T10:43:56Z")

</div>

I have a short animation with a music background in a layer, and in another layer, i have a stop button, where i use:

on (release) {gotoAndStop(“end”);}

but the music doesn’t stop…what should I do to make it both stop the same time?
