There might be an in-built way to do this, but if not, and you have access to the html pages, pass in the page name using flashVars.
Or see if running some JavaScript will work: window.location will return what's in the URL bar. So: a = theReturnedURL.split("/"); trace(a[a.length - 1]); should get you the file name. Have a play, see what happens. Adrian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gerry Creighton Sent: 31 October 2005 19:09 To: Flashcoders mailing list Subject: [Flashcoders] getting the html page Has anyone used code to detect what HTML page the SWF is embedded in? Is this possible? i.e.... if(page == about.html){ //set certain corp logo } Thanks, Gerry ........................................................................ ... http://www.thespikeranch.com Certified Macromedia Flash MX Designer ........................................................................ _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders