Hi Erich, Sorry I can't help you outright, have you tried running this in debug mode though and stepping through to see if you get any errors, or do you have the flash player debug version installed for that matter. Seems very strange it would somehow fail on that method or assignment without throwing any sort of error. If you do have the debug player setup and working properly and when you debug it just disconnects when it hits that line or something of that nature, I'd try to comment it out then clean install and check it again see if it hits alert 2 un- comment it clean build and try again. I can't think of a case when I've had something like that happen(except perhaps when partial builds then subsequent incremental builds didn't work out but cleaning always fixes that), also I'd use trace() instead of Alert.show() but I suppose that's sort of personal preference. Let me know if you think I can help out at all. ... oh also you might want to try var latlng:LatLng = new LatLng(parseFloat(markerx...@lat), parseFloat(markerx...@lng));
Shaun On Aug 10, 3:56 am, Erich <[email protected]> wrote: > Hi everybody, > > I have a small issue... I can't create the object and in fact I see > only Alert #1. > > i) Any idea? > ii) How can I use addOverlay as well? > > public function readXml(event:Event):void{ > var markersXML:XML = new XML(event.target.data); > var markers:XMLList = markersXML..marker; > var markersCount:int = markers.length(); > var i:Number; > var marker_s:Array = []; > > for (i=0; i < markersCount; i++) { > var markerXml:XML = markers[i]; > var name:String = markerx...@name; > var address:String = markerx...@address; > var type:String = markerx...@type; > var distance:String = markerx...@distance; > var latlng:LatLng = new LatLng(markerx...@lat, > markerx...@lng); > var marker:Marker = createMarker(latlng, name, > address, type); > > marker_s.push(marker); > > //map.addOverlay(marker); > > //populate the datagrid > myMarker.addItem({nameInstitute:name, > distanceInstitute:distance, > latLntInstitute:latlng }); > > } > //Alert.show(map.value); > Alert.show("1"); > markerClusterer = new MarkerClusterer(map, marker_s); > Alert.show("2"); > } > > Thanks in advance. > > E -- 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.
