I hope someone can help. I've been playing with the Create WMS Layer Sample from ESRI and was able to get it to work except with this one service. With this service we need to provide an API key to get access to the service and the API key has hyphens in it. Fiddler shows that the hyphens are being converted by flash to %2D.
I've googled trying to find a solution but none fix the problem.
public function WMSLayer() { super(); setLoaded(true); // Map will only use loaded layers // init constant parameter values _params = new URLVariables(); _params.request = "GetMap"; _params.APIKey = "#######-####-####-####-##########"; _params.transparent = true; _params.format = "image/jpeg"; _params.version = "1.1.1"; _params.layers = "WebTools"; _params.styles = ""; _params.service = "WMS"; _params.BILLINGUNIT = "testCustomer2";
var url:String = "http://wms.sample.ca/WMSServer.aspx?"; _urlRequest = new URLRequest(url); _urlRequest.data = _params; // set params on URLRequest object }