Can AS trigger web page action?

We talk a lot about a web page passing parameters to a movie. How about the reverse? Can a movie trigger activity on the web page in which it is appears?

Specifically, I would like a Flash player to play a song, and when the song ends (Event Complete?) I would like the web page to reload or possibly go to another web page. I am not anxious to put the entire web page in Flash, but php and maybe some javascript would be OK.

Any thoughts on how you might do this?