>From my testing, the default infoWindow doesn't throw the link clicked
event like a normal label/Text component.

On May 17, 8:08 am, Ranglo <[email protected]> wrote:
> Hi,
>
> Does anyone know if it is possible to embed a href link into an array
> as shown, and then call this to appear as a href link within the
> infowindow so the user can click on the link?
>
> Thanks
>
> public var locations:Array = [
>         {name: "Palo Alto, CA", latlng: new LatLng
> (37.618991,-122.371216), descrip: "May 2007-September 2008" },
>         {name: "Tokyo, Japan", latlng: new LatLng(35.54815,139.78420),
> descrip: "Oct 5 2008 - Oct 12 2008"},
>         {name: "Shanghai, China", latlng: new LatLng
> (31.240985,121.420898), descrip: "Oct 12 2008 - Oct 17 2008"},
>     ];
>
> //////////////////////
>
> public function createMarker(currentLocation:Object, number:int):void
> {
>         var opts:MarkerOptions = new MarkerOptions();
>         opts.label = String(number);
>         var marker:Marker = new Marker(currentLocation.latlng, opts);
>         marker.addEventListener(MapMouseEvent.CLICK, function
> (e:Event):void {
>             marker.openInfoWindow(new InfoWindowOptions({contentHTML:
> "<b>" + currentLocation.name + "</b><br/>" +
> currentLocation.descrip}));
>         });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to