Bugger i thought i had it but still no luck so i will better explain
what i have so far.

//Add markers to map
function createMarker(latlng:LatLng, name:String, address:String,
comments:String, count:Number):Marker {
        var marker:Marker = new Marker(latlng, new MarkerOptions({icon: new
budIco(), iconOffset: new Point(-16, -32)}));
        marker.addEventListener(MapMouseEvent.CLICK, function
(e:MapMouseEvent):void {
        var options:InfoWindowOptions = new InfoWindowOptions({
                        customContent: new gMapEntry(name,address,comments,map),
                        customOffset: new Point(0, 10),
                        width: 300,
                        height: 120,
                        drawDefaultFrame: true,
                        hasCloseButton:false,
                        strokeStyle: {
                                 color: 0xffffff
                        },
                        fillStyle: {
                                color: 0xffffff
                        }
                });
                marker.openInfoWindow(options);
        });
        markersArray.push(marker)
        if(count<=10){
                recentComments+=name+": "+comments.substr(0,25)+"... : <a
href='event:"+marker+"'><u>View</u></a>\n"
        }
        return marker;
}


//Pass recent comments to mc with textfield
function readXml(event:Event):void {
        var markersXML:XML = new XML(event.target.data);
        var markers:XMLList = markersXML..marker;
        for (var i:Number = 0; i < markers.length(); i++) {
                var marker:XML = markers[i];
                var name:String = mark...@name;
                var address:String = mark...@web;
                var comments:String = mark...@comments;
                var latlng:LatLng = new LatLng(mark...@lat, mark...@lng);
                var mark = createMarker(latlng, name, address, comments, i);
                map.addOverlay(mark);

        }
        swapChildren(map,gbInfo)
        Tweener.addTween(gbInfo,{alpha:1, time:3});
        gbInfo.txComms.htmlText=recentComments
}


//Add listener to textfield to check for link clicks
txComms.addEventListener(TextEvent.LINK, linkHandler);
function linkHandler(linkEvent:TextEvent):void {
        trace("link:"+linkEvent);
}

//

I've tried a few different ways to implement your code but i end up
with errors.
Thanks for your help so far.

--~--~---------~--~----~------------~-------~--~----~
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