{"id":55,"date":"2009-01-27T05:25:45","date_gmt":"2009-01-27T13:25:45","guid":{"rendered":"http:\/\/www.blogs.abeazam.com\/dev\/?p=55"},"modified":"2009-01-27T05:25:45","modified_gmt":"2009-01-27T13:25:45","slug":"finding-page-url-using-actionscript","status":"publish","type":"post","link":"http:\/\/www.blogs.abeazam.com\/dev\/2009\/01\/finding-page-url-using-actionscript\/","title":{"rendered":"Finding Page URL using ActionScript"},"content":{"rendered":"<p>How can I find the url of the page my flash is embedded in? This may seem really simple but I cant count how often I find js functions which pass this value into the flash. ExternalInterface allows access to a wide variety of js and should not be over looked. The below line of code will call the javascript &#8220;window.location.href.toString&#8221; and return the url as a string.<\/p>\n<pre lang=\"actionscript\" lineno=\"1\">var currentURL:String = ExternalInterface.call(\"window.location.href.toString\");<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How can I find the url of the page my flash is embedded in? This may seem really simple but I cant count how often I find js functions which pass this value into the flash. ExternalInterface allows access to a wide variety of js and should not be over looked. The below line of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,16,33],"tags":[95,56,57,58,59,107,62,64,65,68],"_links":{"self":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/55"}],"collection":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blogs.abeazam.com\/dev\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}