how to get the url of the domain where the swf islocated when i use

_root._url i get the path as

http://domain.com/main.swf

i want only http://domain.com