Continuous Music Idea

I am in need of the ability to have continous music played through out my website. Every page is html with .swf files scattered about. I do not want to do any type of frames or re-designing of the site. Here is my proposal…

What if you had a player made in flash that loaded the songs via xml. Obviously there would be a buffer size set before play. This is all standard. My experience in doing it this way allows the downloaded .mp3 files to be cached. What if you could get the flash file to recognize when it leaves a particular page and posts the result in the loaded page allowing the .swf file playing the music to recognize where it left off?

Just a thought. Would be interested in hearing your thoughts if this would even work. Thanks.