Thanks for the response Ray but that is not really what I am looking for. I don't want to prevent others from using my swf. I just want an way to identify the referring domain when it is embedded. Specifically, I want people to embed my swf from my server on their web pages (hosted by myspace or anywhere else) and have the player detect at runtime where the request is coming from. Unfortunately using php or asp for referrer detection is not an option. I am hoping there is a way to get it from the player. I figure the player must know about the referring domain as it is able to block or accept calls from the page with the allowscriptaccess parameter.
> > The swf (SWFA) that wants to load your swf (SWFB) can't do so if you > > i) you don't allow it > ii) you don't know where SWFA is > > You have to know where SWFA is to allow it. > > See the System.security.allowDomain entry in the Flash 8 docs; it has > a nice diagram to illustrate things. > > http://livedocs.macromedia.com/flash/8/main/00002647.html > > > On 11/16/06, Dave Segal <[EMAIL PROTECTED]> wrote: > > Is there a way to find the domain of the page that loads my swf. For > > example, someone embeds an swf served from my server on their > > www.myspace.com <http://www.myspace.com/> page. Is there > is way for me to > > determine that the request is coming from myspace.com at runtime? > > > > A search of the archive revealed this thread that describes > exactly the > > problem that I am facing but I didn't see any solution. > > > http://chattyfig.figleaf.com/pipermail/flashcoders/2006-Octobe r/175064.html > > > > I have the option of using AS 3 if it provides a solution. > > > > Thanks. > > > > > > > -- > Cheers, > Ray Chuan _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

