XML MP3 player, fade audio

I have an XML MP3 player on my stage with a Play and Stop button. I was wondering how i’m able to add a fade to the audio once the Stop button is pressed instead of an immediate stop.

Thanks