Making my music player, and I have greenfootSound figured out, but the problem is I need the song to change (to get it to stop, pause, and such) So how do I set the sound to a variable?
You store a reference to a GreenfootSound in a variable using the exact same technique as for any other type:
GreenfootSound mySound = new GreenfootSound("mySound.mp3");