This is very handy script if you are trying to see where exactly the SWF has been loaded from you can read the Title of the page and the URL by using “ExternalInterface.call” method.
var title:String = ExternalInterface.call('window.document.title.toString');
var <a href="url:String">url:String</a> = ExternalInterface.call('window.location.href.toString');
res.appendText( "url = "+url+" \ntitle = "+title ); //add a text field to the stage called "res"
Example (note that this is sitting in a iframe @ http://sputn1k.co.uk/labs/url/)














