Any one know how to trigger an event from a URL within an info
window.
E.g.
var lbl:TextArea = new TextArea ;
lbl.htmlText = "<b>" + "MAP" + "<a href = 'event:myevent'
target = '_NULL'><font color='#0000ff'><u>" +
currentLocation.shorttitle + " </u></a>";
lbl.addEventListener("link", clickHandler);
marker.addEventListener(MapMouseEvent.CLICK,
function(e:Event):void {
marker.openInfoWindow(new InfoWindowOptions(
{contentHTML: lbl.htmlText}));
});
map.addOverlay(marker);
}
private function clickHandler(linkEvent:TextEvent):void{
Alert.show("woo hoo I can do it" + linkEvent.text);
}
Nope, this doesn't work. Can anyone point me in the correct
direction.
Many thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---