Select to view content in your preferred language

ArcGIS API for Flex 2.4 just released :)

2733
12
07-28-2011 05:21 PM
BjornSvensson
Esri Regular Contributor
See Top-10 features of version 2.4 on the server blog at http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2011/07/25/ArcGIS-API-for-Flex-and-ArcGIS-Viewe....  Then go to the "What's New" on the resource center to get the full story.

Tip: If you don't see the new pages, try emptying your browser cache, or wait a little for all our web servers to clear their caches...
Tags (2)
0 Kudos
12 Replies
baixuehong
Emerging Contributor
When the database problem can be solved?Look forward this improvement!:)
0 Kudos
BjornSvensson
Esri Regular Contributor
@baixueho,
What database problem?
0 Kudos
VictorMilla
New Contributor
Wonderful new!!

Where can I download the viewer 2.4???

I have looked everywhere or do I just download the 2.4 API?

Thanks,

Heather Mounts
NC State Historic Preservation Office
0 Kudos
BjornSvensson
Esri Regular Contributor
Go to the resource center at http://links.esri.com/flexviewer, click the "Download Viewer" link on the right side of the page (under Quick Links).
0 Kudos
VijayashreeN
Emerging Contributor
See Top-10 features of version 2.4 on the server blog at http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2011/07/25/ArcGIS-API-for-Flex-and-ArcGIS-Viewe....  Then go to the "What's New" on the resource center to get the full story.

Tip: If you don't see the new pages, try emptying your browser cache, or wait a little for all our web servers to clear their caches...



I am unable to see the real application it gives me lot of errors. Flex builder launch failed is the error that I am getting also

Description Resource Path Location Type
Could not resolve <s:ViewNavigatorApplication> to a component implementation. WebMap.mxml /flexapi2.4devver/src line 5 Flex Problem
Please help
0 Kudos
ChristopherJennings
Emerging Contributor
I'm receiving lots of errors (28 of them) when trying to create a new app based on the 2.4 source code:
-Description Resource Path Location Type
1120: Access of undefined property layoutDirection. WidgetTemplateSkin.mxml /FlexViewer/src/com/esri/viewer/skins line 42 Flex Problem

Plus more like this:

Description Resource Path Location Type
Cannot resolve attribute 'layoutDirection' for component type com.esri.viewer.BaseWidget. OverviewMapWidget.mxml /FlexViewer/src/widgets/OverviewMap line 21 Flex Problem

The error above applies to OverviewMapWidget, WidgetContainer, MapManagerSkin, and NavigationWidget

To create the errors I did the following:
1. Created new directory
2. Restarted Flash Builder using the new directory as my project directory
3. Imported src from 2.4 viewer directly from the .zip file using the "File --> Import Flex Project" menu option
4. Project attempts to compile then returns the errors
0 Kudos
BjornSvensson
Esri Regular Contributor
Cannot resolve attribute 'layoutDirection' for ...


Christopher, it looks like you are compiling with Adobe Flex 4.0 SDK.  Starting with version 2.4 you need to use version 4.1 or higher.

From the What's New in 2.4 Viewer (under "General Changes"):
  • Compiling the source code [for ArcGIS Viewer for Flex] requires Adobe Flex 4.1 or above. This is to support Arabic and other right-to-left locales. Note that the API itself still works with 4.0, 4.1 as well as 4.5.


It's also mentioned briefly in the "Upgrading your viewer Code":
  • In version 2.4 of the Viewer, Adobe Flex 4.1 SDK is the minimum SDK version to compile with.
0 Kudos
ChristopherJennings
Emerging Contributor
Thanks, Bjorn. I'm definitely compiling w/ 4.0. That is the likely culprit.
0 Kudos
earthmineinc
Emerging Contributor
Hi,

I developed a widget based on Flexviewer-2-3, and when I copy and paste it into the new flexviewer-2-4 environment and try to launch it the application crashes saying this :

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.viewer.managers::WidgetManager/createWidget()
at com.esri.viewer.managers::WidgetManager/runWidget()
at com.esri.viewer.managers::WidgetManager/widgetReadyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/readyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/docFrameHandler()
at mx.core::FlexModuleFactory/docFrameListener()

Is there a way to make a 2-3compiled widget work with a flexviewer2-4 environment? (i mean other way than just recompile it with the 2-4environment source)

Thank for your feedback.

Alex
0 Kudos