Adobe Flash Builder compile error

541
2
05-23-2011 01:10 PM
RajKailasan
New Contributor
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()

What could be the reason for this error?
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Raj,

Flex API uses the REST endpoint so your url is incorrect.

<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://servername/ArcGIS/rest/services/SampleMXD/MapServer"/>
</esri:Map>
0 Kudos
sibongilekgaile
New Contributor
Hi

I am also getting the  same error. The error only appears when I am running the project in the debug mode though. Please help!

Sibu
0 Kudos