View: How to Get the Current Page's URL into Flash

  1. 1 year ago by spirit
    1. // This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
    2.  
    3. import flash.external.ExternalInterface;
    4.  
    5. var pageURL:String =
    6.         ExternalInterface.call('window.location.href.toString');
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1411"></script>

0 comment about "How to Get the Current Page's URL into Flash"