I've imported the MarkerManager class, and now trying to push the
individual markers into that batch array while I parse the XML data.

function parseData(marketInput:XML):void {
        var batch:Array;
        var mgr:MarkerManager = new MarkerManager(map, {});
        var marketCount:int = marketInput.market.length();
        var i:Number;
        for (i=0; i < marketCount; i++) {
                var marketLocation:String =
marketInput.market[i].MarketLocation.text();
                var rad:Number = 
Number(marketinput.market[i].marketlocati...@rad);
                var lat:Number = 
Number(marketinput.market[i].marketlocati...@lat);
                var lng:Number = 
Number(marketinput.market[i].marketlocati...@lng);
                var marketMarker:Marker = createMarker(lat, lng, 
marketLocation);
                //map.addOverlay(marketMarker);
                var polygon:Polygon = drawCircle(lat,lng,rad);
                map.addOverlay(polygon);
                batch.push(marketMarker);
        }
        mgr.addMarkers(batch,5);
        mgr.refresh();
}

I've traced the issue to just before the batch.push(marketMarker) and
when I go to compile I get this error:

Could not parse the XML
Error #1009: Cannot access a property or method of a null object
reference.

The first polygon gets drawn and added to the overlay, then it errors.
What am I doing wrong?

Thanks for any help.

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