Paul-

I believe you can do this with much better efficiency:

txComms.addEventListener(TextEvent.LINK, function
(linkEvent:TextEvent):void {
        var linkID:Number=Number(linkEvent.text);
        var marker:Marker =markersArray[linkID];
        marker.dispatchEvent(new MapMouseEvent(MapMouseEvent.CLICK,
marker,
                                                  marker.getLatLng(),
true, false));
});


On May 19, 10:08 am, "[Paul Ferrie]" <[email protected]> wrote:
> I got it!!!
>
> Thank you so much
> //
> txComms.addEventListener(TextEvent.LINK, linkHandler);
> function linkHandler(linkEvent:TextEvent):void {
>         var linkID:Number=Number(linkEvent.text);
>         MovieClip(parent).viewPop(linkID)}
>
> //
> function viewPop(id:Number){
>         for (var i:int=0; i<markersArray.length; i++) {
>                 if (i==id) {
>                         var marker:Marker =markersArray[i]
>                         marker.dispatchEvent(new 
> MapMouseEvent(MapMouseEvent.CLICK, marker,
> marker.getLatLng(), true, false));
>                 }
>         }
>
> }
--~--~---------~--~----~------------~-------~--~----~
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