how to get the url of the domain where the swf islocated when i use
_root._url i get the path as
http://domain.com/main.swf
i want only http://domain.com
Printable View
how to get the url of the domain where the swf islocated when i use
_root._url i get the path as
http://domain.com/main.swf
i want only http://domain.com
Hi,
Try something likeor perhaps something likePHP Code:
var lc:LocalConnection = new LocalConnection();
web.text = lc.domain();
if it is not bringing in the http://PHP Code:
var lc:LocalConnection = new LocalConnection();
TheUrl = lc.domain();
if (TheUrl.indexOf("http://") == -1)
{
web.text = "http://" + TheUrl;
}
else
{
web.text = TheUrl;
}