/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function getDomain():String { var uri:String = this.loaderInfo.loaderURL; uri = uri.substring(uri.indexOf("//")+2, uri.length); uri = uri.substring(0, uri.indexOf("/")); var urp:String = this.loaderInfo.loaderURL; urp = urp.substring(0, urp.indexOf("//")+2); uri = urp + uri; return uri; }