import flash.external.*; var href = ExternalInterface.call('function testUrl () { return document.location.href }');