Detect web protocol

I’m working on a site where I have a flash animated logo in the header of all pages that links to the home page of the site. Sometimes that logo shows up on SSL pages. But when you link back to the home page, it needs to be non-SSL. But we don’t want to always use an absolute URL because that makes testing in our local environment tricky.

Can you detect the web protocol within Flash?