I am learning to work with Google Maps using Flex. I recreated the xml parsing demo locally and it kept throwing the error TypeError: Error #1007 Instantiation attempted on a non-constructor error. At first I thought it was something that I was doing wrong so I went back to look at the demo again.
I discovered the demo on the site is throwing the same error in the both IE and Firefox browsers.. (I'll paste it below). I have the debug version of flash installed and apparently it is catching the error. Does anyone know what to do to fix the problem? URL: http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/XmlParsingDemo/XmlParsingDemo.html TypeError: Error #1007: Instantiation attempted on a non-constructor. at XmlParsingDemo/createMarker() at XmlParsingDemo/readXml() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() I think it has something to do with this function public function createMarker(latlng:LatLng, name:String, address:String, type:String): Marker { var marker:Marker = new Marker(latlng, new MarkerOptions ({icon: new customIcons[type], iconOffset: new Point(-16, -32)})); var html:String = "<b>" + name + "</b> <br/>" + address; marker.addEventListener(MapMouseEvent.CLICK, function (e:MapMouseEvent):void { marker.openInfoWindow(new InfoWindowOptions ({contentHTML:html})); }); return marker; } I really want to keep learning but this is stopping me from advancing. Any help would be appreciated. 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.
