[flexcoders] How/where do I get the server name

2005-07-29 Thread pb_test
Hi, I need to get the server name of where the SWF is served. For example: if the flex client is servered from http://www.macromedia.com/flex/, I need to get http://www.macromedia.com/ Thanks, Yahoo! Groups Sponsor ~-- font face=arial size=-1a

Re: [flexcoders] How/where do I get the server name

2005-07-29 Thread Darron J. Schall
pb_test wrote: Hi, I need to get the server name of where the SWF is served. For example: if the flex client is servered from http://www.macromedia.com/flex/, I need to get http://www.macromedia.com/ This might help: http://www.prismix.com/blog/archives/2005/05/how_do_i_get_th.cfm -d

Re: [flexcoders] How/where do I get the server name

2005-07-29 Thread Clint Modien
wrote this a while back should help ya out. can use it like this: var serverName = URLUtil.instance.getServerName(); class URLUtil { private static var _instance:core.utils.URLUtil; private var urlElementsArray:Array; private function URLUtil() { var s:String =