I loaded a component to export map to PDF (async one) from http://www.arcgis.com/home/item.html...f697d9965f1dd7. However, I got a runtime error: TypeError: Error #1009: Cannot access a property or method of a null object reference at WidgetManager.mxml's Line 403, var widget:IBaseWidget; widget = modInfo.factory.create() as IBaseWidget; widget.widgetId = widgetId; // Line 403 when I clicked the tool's icon to open the widget. Through tracing, I found that widget is null. I believe that the modInfo.factory.create() failed. How can this problem be solved? I will appreciate if someone can hint me how to debug this problem. Thanks.
From the looks of the error you are attempting to use the compiled swf and David compiled this using a different version of the flex API than you are currently using. You will have to recompile this widget your self so that you can get the API versions matching with your app.
Don't forget to click the Mark as answer check on this post and to click the top arrow (promote). Follow the steps as shown in the below graphic:
From the looks of the error you are attempting to use the compiled swf and David compiled this using a different version of the flex API than you are currently using. You will have to recompile this widget your self so that you can get the API versions matching with your app.
Don't forget to click the Mark as answer check on this post and to click the top arrow (promote). Follow the steps as shown in the below graphic: