Select to view content in your preferred language

Problems with ArcGis API for Flex

526
3
06-04-2010 01:07 AM
francescodi_vito
Deactivated User
Hi my name is Francesco. I'm working in University of Roma TRE in the laboratory GIS. A few days ago, i created a web application with ArcGis Server Manager and now i would like to represent with API for flex. The problem is strange; when i copy the code ( that find on the support ) in flex ( samples: Tiled Map ) the scale bar and the zoom are in another position, in the viewer on support are bottom left and in my application are top right!
Why? I'm a analyst GIS not a programmer
i wait a your answer
thanks
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
francesco,

   Positioning of the scalebar and the zoom slide can be done through CSS but as you are just beginning and was not aware of this I doubt that this is your case. It would be best for you to post your flex code so we can see why yours are not in the default location.
0 Kudos
francescodi_vito
Deactivated User
hi Robert i have this problem for any saple code (ex. Dynamic map or Tiled Map ex:<?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 tiled AGS service"    styleName="plain"    >    <mx:Text text="This is a tiled Map Service from ArcGIS Online." width="100%"/>    <esri:Map>        <esri:ArcGISTiledMapServiceLayer            url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>    </esri:Map></mx:Application>).
I have the same problem in the sample flex viewer when i import it in the flex builder. Sorry but the scale bar and the zoom appears at the top left. So I'm looking at the various examples that are on support and training, but the problame it's the same.
I use a version 4 of flex builder.
When i want to creat a new application i open a flex builder
create new project
add api librery
and after in the page of code upload the code of sample that is on support.
But there is a problem also for sample flex viewer.To launch sample flex viewer,what is the exact procedure after making changes config.xml?

thanks for your time
0 Kudos
ReneRubalcava
Esri Frequent Contributor
It looks like you are using the ESRI Flex API 1.3, so you're going to want to change your Flex compiler settings to Flex 3.

You can do so by going to the properties of your Flex Project, go to Flex Compiler, choose "Use Specifc SDK" and select Flex 3.5 in the dropdown. FlashBuilder 4 will default your projects to the Flex 4 SDK, which is not compatible with the current ESRI 1.3 API.

If you are interested in the 2.0 beta and Flex 4 features, you can look over this thread. http://forums.arcgis.com/threads/5136-Updated-beta-ArcGIS-Web-API-for-Flex-2.0-Beta-Update-3
0 Kudos