Select to view content in your preferred language

the MOST BASIC flex sample - help

702
3
01-13-2012 10:40 AM
N_Young
Deactivated User
I am using the free software FlashDevelop, not Adobe Flash Builder.
I would like to run the sample for getting started with flex, which is here.

I believe I have FlashDevelop set up correctly.  I have been able to do some basic things that are not using the arcgis flex api.
-the flex SDK is set up correctly
-the arcgis API for flex has been in the "lib" folder of my project and added as a library for FlashDevelop
-I copied the sample code into Main.mxml of my project and compiled this.

It compiles but only a completely blank, white window comes up.  Any thoughts?

Here is my code, copied directly from the "Getting Started" page:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:esri="http://www.esri.com/2008/ags"
                       pageTitle="Example #1">
    <esri:Map>
         <esri:ArcGISTiledMapServiceLayer
              url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
    </esri:Map>
</s:Application>


Thanks for your patience!
Tags (2)
0 Kudos
3 Replies
RuiShen
Occasional Contributor
Hi,
It's really the software issue.
I tried a couple of things on my side and I think I finally make it working.

After add the arcgis API for flex to the "lib" folder of your project, you need to go to Project->Properties->Compiler Options
Be sure to add "lib" to both "SWC Include Libraries" and "SWC Libraries".
This will make it work.
0 Kudos
N_Young
Deactivated User
Thanks for checking on this problem.  Unfortunately that did not work for me.  Do I need to type just

lib

or should I type

lib/agslib-2.5-2011-11-30.swc  ?

I tried both of those but I had no luck.
0 Kudos
N_Young
Deactivated User
Though FlashDevelop support has tried to help me, nothing has been successful.  I got the free trial of Adobe Flash Builder and got the map up very quickly.  I would just discourage any Flex beginners from using FlashDevelop.  Use Adobe instead; it would have saved me a very long set of hours.
0 Kudos