Tags: as

Sort by: Date / Title /

  1. 1 year ago by spirit
    This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. Javascript must be enabled for this to work. if the window.location.href.toString method doesn't return a value then ExternalInterface.call will return null. Same thing happens when Javascript is disabled.
    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>

First / Previous / Next / Last / Page 1 of 1 (1 posteets)