I need my swf to be able to see the domain of the page that it's loaded on. Normally to to this I would just look at window.location over ExternalInterface, but in this particular case the swf is going to be embedded with allowscriptaccess="never", so that's not going to work. Is there an actual api that will give me that or do I have to resort to ugly hacks?
views:
25answers:
2That returns the url of the swf, not the url of the page that the swf was loaded on.
rabidsnail
2010-10-22 16:15:28
Would you be able pass the URL of the page to the swf through the FlashVars parameters? The downside of this would be that you would have manually add this to the pages where the file is embedded.
cmann
2010-10-22 22:18:29
That can be trivially forged.
rabidsnail
2010-10-23 07:15:26
Does that work when the swf is being embedded and not loaded by another swf? The docs would suggest no.
rabidsnail
2010-10-22 16:17:18