Select to view content in your preferred language

I,AM BEGINNER IN FELX API USING ARCGIS SERVER 9.3.1

1242
11
06-04-2010 12:11 AM
mohamedabouzaid
Emerging Contributor
HELLO ALL ,

ITS MY FIRST WEB APP USING FLEX API
WOULD ANY ONE PLEASE TO GIVE ME THE CODE FOR PUTTING MY OWN DATA LIKE SHAPEFILES_GEODATABASE
IN MY APPLICATION.
THANKS ALOT .
Tags (2)
0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
mohamedabouzaid
Emerging Contributor
MANY THANKS MR ROBERT FOR YOUR INTEREST
BUT WOULD YOU PLS TO GIVE ME AN EXAMPLE SHOWING HOW CAN I ADD MY DATA.
THAT IS THE FIRST TIME TO SEND A TOPIC IN ESRI FORUMS AND I AM A NEW IN BUILDING WITH FLEX AND
ABSOLUTELY BEGINNER IN PROGRAMMING .
THANKS A LOT AGAIN.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohamed,

   All you need to do to add your own data is go to your REST Services directory http://localhost/ArcGIS/rest/services/ and see a listing a map services that you have available and click on one and copy the url from the address bar and paste that into on of the samples.

Here is one of ESRI's map services:
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/Map...

Here is an example of what one on your server would look like:
http://localhost/ArcGIS/rest/services/mydata/MapServer

So using the most simple sample from the link I provided you the code example would look something like this

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:esri="http://www.esri.com/2008/ags"
    pageTitle="Example - ArcGIS API for Flex connecting to a dynamic AGS service">
    <esri:Map>
        <esri:ArcGISDynamicMapServiceLayer
            url="http://localhost/ArcGIS/rest/services/myData/MapServer"/>
    </esri:Map>
</mx:Application>
0 Kudos
__1
by
Emerging Contributor
MANY THANKS MR ROBERT FOR YOUR INTEREST
BUT WOULD YOU PLS TO GIVE ME AN EXAMPLE SHOWING HOW CAN I ADD MY DATA.
THAT IS THE FIRST TIME TO SEND A TOPIC IN ESRI FORUMS AND I AM A NEW IN BUILDING WITH FLEX AND
ABSOLUTELY BEGINNER IN PROGRAMMING .
THANKS A LOT AGAIN.


http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html

You can find lots of samples here.
0 Kudos
mohamedabouzaid
Emerging Contributor
many thanks for all . i will try to get a good result in my first application using flex.
now i have a concept.
bye
0 Kudos
mohamedabouzaid
Emerging Contributor
this my code to publish my own mxd but it wasnot worked

would any one please to handle my code .i use arcgisservre9.3.1 and flexbuilder 3

here is my code


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:esri="http://www.esri.com/2008/ags">

<esri:Map>
        <esri:ArcGISDynamicMapServiceLayer
            url="http://orcl/ArcGIS/rest/services/NEW_RIYADH/MapServer"/>
    </esri:Map>

</mx:Application>
0 Kudos
GiosiaPoma
Regular Contributor
Hi mohamed,
the arcgis server and the webserver with the flash application is on the same server? If not you must add the crossdomain.xml on the arcgis server web root.

Regards
0 Kudos
mohamedabouzaid
Emerging Contributor
MANY THANKS BUT I ,VE FAILED TO GET A RESULT. WOULD YOU MIND PLEASE  TO GIVE ME SOME CODE ABOUT THIS TOPIC?.
REGARDS
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohamed,

    You really need to start doing some reading. Code snippets will do little good for a manager if you don't understand what is happening in the code. Start looking here http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/content/getting_started.htm and then read this about the crossdomain.xml http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/content/deploy_application.htm
0 Kudos