If 'backgroundmusic' is the name of a public field that holds the GreenfootSound object that is playing, and it is located in your world class, and you want to stop it from an actor class; then, as long as the actor is still in the world, you can use: