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