This file was written in Flash CS4 and uses AS3. I have provided a Flash CS3 version also.
This music button plays unlimited random songs set in the xml and uses SharedObject to save and load the player state. This way if a user navigates to a new page or re-visits your site, the player will remain in its last state. So if a visitor turns off the music button and then re-visits your site later, the music will stay off and vice-versa.
This file is within a single movieclip on the stage so you can potentially add it to your project.
You can also change the spectrum colour via the xml.
Please enjoy this file from BestFlashCreations !
Appreciated on September 15th, 2014