Error when trying to use the GeocoderComponents.mxml file with own widget file

3934
1
01-20-2015 05:17 PM
LizaEveron
New Contributor

Hello, I'm totally new to Flex development, So maybe I'm over thinking my problem too much.But i have this issue which I can't find a solution for.

 

I'm trying to build a custom search widget that autocompletes the name of a street when you type and when you find the street-name it gives you back in a DropDownList with all the house numbers in that street. And to make that possible I decided to use in my widget the GeocoderComponents.mxml file but when ever I test it out it gives me this error:

 

TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at com.esri.viewer.components::GeocoderComponentA/tQuery()

Tags (1)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Liza,

   You are posting this question in the Flex API and not the ArcGIS Viewer for Flex forum so can we assume that you are attempting to use this viewer code in your custom Flex API app? If that is the case then you will likely have several issues with the codes dependency on other viewer code.

0 Kudos