AFComponents.com

sending parameter to a certain url
Date: Aug 23, 2007   Views: 3755  
Question:
hi, I've bought the map a few weeks ago. The example_polylines Map is really great work and excactly what I was looking for. No I get stucked on following problem. The map should requesting a http://url with a parameter (client id) to read a xml file and display it on a map like it is displayed in your example map..
Can you give me a hint or point me to a direction on how to tell the map to open a url with the parameter.
Answer:

wigz (Admin)
If you want it to work exactly like our example where it opens a Google Map, just set the "googleMap" parameter to "true." If you need a custom URL when the user clicks a point, add the URL to the "data" parameter in the parameters window, or in your XML file and use the following code:

function click(evnt:Object){
    trace(evnt.type);
    getURL(evnt.locationData);
}
myMap.addEventListener("click", this);


Let me know if you need anything else. Thanks!


© 2005-2007 advanced flash components