snipplrCallback({"id":47055,"title":"get-url-of-the-page-where-swf-is-embedded","source":"
function<\/span> get<\/span> currentURL(<\/span>)<\/span>:String<\/span><\/div><\/li> {<\/span><\/div><\/li> var<\/span> url<\/span>:String<\/span>;<\/div><\/li> if<\/span> (<\/span>ExternalInterface.available<\/span>)<\/span> {<\/span><\/div><\/li> return<\/span> ExternalInterface.call<\/span>(<\/span>"window.location.href"<\/span>)<\/span>;<\/div><\/li> }<\/span><\/div><\/li> return<\/span> url<\/span>;<\/div><\/li> }<\/span><\/div><\/li><\/ol><\/pre>","link":"https:\/\/snipplr.com\/view\/47055\/get-url-of-the-page-where-swf-is-embedded"});