10/25/2012

Getting url of current page of browser

Here's how you get the current url of the page the swf is hosted in. import flash.external.ExternalInterface; var url:String=ExternalInterface.call("eval","document.location.href"); quick simple snippet

1 comment:

  1. cool.
    work only if allowscriptaccess is set to samedomain or always

    ReplyDelete