Getting Browser Information into Flash Document

I was wanting to create a flash header that displays different information based on the page in the website, and need to get the URL of the webpage into the swf file. Does anyone know how to do this?