How do I programatically detect from Flex/Actionscript the STRING representing the current security domain, as used by LocalConnection.AllowDomain?
How do I programatically detect from Flex/Actionscript the STRING representing the current security domain,
Share
I’m unclear if this answers your question, but to get the domain that hte SWF is being served from use Application.url to get the URL Serving the SWF and then use URLUtils.getServerName to get the actual domain.
The LocalConnection class also has a domain property, which looks like a shortcut for the above if you’re using a LocalConnection.
I believe either of those will give you the current domain. It sounds like you want to know the name of the domain trying to access your SWF, though. If so, I do not know of a way to get that information.,