Hi Jack-

Have you tried assigning an event listener for MouseEvent.CLICK? The
reference lists that as an event that it dispatches.

See:
http://livedocs.adobe.com/flex/2/langref/mx/controls/TextArea.html#eventSummary
http://livedocs.adobe.com/flex/2/langref/flash/display/InteractiveObject.html#event:click

- pamela

On Sat, Oct 11, 2008 at 2:25 PM, jackdee <[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to