I published a .mxd document(stored in c:\inetpub\wwwroot\ArcGIS\services\SampleMXD folder) in my Arcgis server( version 10). It was published from ArCGIS server manager. I downloaded Flashbuilder (Adobe® Flash® Builder??? 4.5) and am trying to build a very basic application to use this published service and has the following lines. <esri:Map> <esri:ArcGISTiledMapServiceLayer url="http://servername/ArcGIS/services/SampleMXD/MapServer"/> </esri:Map>
The servername is the name of my server.It gives following error.
TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.ags::Map/http://www.esri.com/2008/ags/internal::toMapX() at com.esri.ags::Map/toMapFromStage() at com.esri.ags::Map/dispatchMapMouseEvent() at com.esri.ags::Map/mouseUpHandler()