Someone else on this list hooked me up with this a while back. It works as
long as JavaScript is not restricted on the pages your swf is embedded on
(see mySpace).
var embedded_domain:String = flash.external.ExternalInterface.call("eval",
"location.href");
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: Tuesday, March 13, 2007 3:19 PM
To: [email protected]
Subject: [Flashcoders] Detecting embedded domain?
Building a video player that can be embedded in a web page. We'd like to be
able to detect what domain the page the player is embedded on lives.
If the domain is not ours (eg, SI.com), we'd like to display a logo; if it
is ours, we don't want to display the logo.
Does anyone know how to detect what the domain is for a page that the SWF is
embedded on?
Blake Perdue | 212.522.1292 | AIM: blakepCNN
_______________________________________________
[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
_______________________________________________
[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