How to stop music together with the animation

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?