Flash domain detection

Hi guys,

I was wondering if somebody could help me figure out how to approach this one.

I’d like a flash widget to be able to find out which domain it is coming from e.g is it up on bebo or myspace etc.

Just some general information to get me started would help because I wasnt sure what to search for in google.

I guess No.1 is it possible?
and No.2 what do I need to use (just flash or PHP or something)

Thanks
dub