How to get the URL typed in the address bar

how do you get the URL thats in the browsers address bar?


function getURLFromAB():void
{
var urladdress:String = // some command goes here

trace(urlAddress);
}