ArcGIS installation Problem

868
10
03-09-2011 07:10 AM
alfredman
New Contributor
I am a window 7 user , with Flex Builder 3.0. I downloaded [arcgis_api_for_flex_2_2.zip] and followed all the steps provided in the readme.txt:

1. In Adobe Flash Builder, create a new Flex project (File -> New -> Flex project).

2. Copy all the contents of the ArcGIS_Flex\samples\src folder to src folder of the Flex project created above.

3. In Adobe Flash Builder, add the API Library to the project through Project -> Properties -> Flex Build Path -> Library Path -> Add SWC (and locate the "agslib-2.2-2010-12-08.swc")


After step 3, I always have 16 Errors as listed below. What can I do to fix this? I tried many time to open new project and add different version of the api 2.0 , 2.1 and 2.2 and all produce similar errors.

Will appreciate any help. Been stuck for hours.

Thanks
Alfred

The 16 Errors are:
{ expected.  ArcFlexTest3 line 4 1299690029447 385627
{ expected.  ArcFlexTest3 line 5 1299690029448 385628
{ expected.  ArcFlexTest3 line 227 1299690029450 385642
Unexpected character: A.  ArcFlexTest3 line 12 1299690029448 385629
Unexpected character: A.  ArcFlexTest3 line 23 1299690029448 385630
Unexpected character: E.  ArcFlexTest3 line 35 1299690029448 385631
Unexpected character: I.  ArcFlexTest3 line 46 1299690029448 385632
Unexpected character: I.  ArcFlexTest3 line 80 1299690029448 385633
Unexpected character: I.  ArcFlexTest3 line 114 1299690029449 385634
Unexpected character: I.  ArcFlexTest3 line 126 1299690029449 385635
Unexpected character: L.  ArcFlexTest3 line 141 1299690029449 385636
Unexpected character: M.  ArcFlexTest3 line 152 1299690029449 385637
Unexpected character: N.  ArcFlexTest3 line 183 1299690029449 385638
Unexpected character: S.  ArcFlexTest3 line 196 1299690029449 385639
Unexpected character: T.  ArcFlexTest3 line 212 1299690029450 385640
Unexpected character: T.  ArcFlexTest3 line 223 1299690029450 385641
Tags (2)
0 Kudos
10 Replies
JeffAzevedo
New Contributor
Try the source code for the Flex Viewer and see if you have better luck.
http://www.arcgis.com/home/item.html?id=3f6a0bfee48949a88df50bf7686ec72a

Follow the readme.txt inside the the zip file.
0 Kudos
alfredman
New Contributor
Thx for reply but this doesn't resolve my problem.

I tried doing the above steps in 2 other PC running window 7 with Flex Builder 3 and the exact error messages still occurs when I am trying to create a new project and add ArcGIS API swf to it...

I am trying to integrate ArcGIS into my flex product to replace the google map I used before. Can anyone please help me to get this started ?

Thanks
Alfred
0 Kudos
IanWatkins
New Contributor
Thx for reply but this doesn't resolve my problem.

I tried doing the above steps in 2 other PC running window 7 with Flex Builder 3 and the exact error messages still occurs when I am trying to create a new project and add ArcGIS API swf to it...

I am trying to integrate ArcGIS into my flex product to replace the google map I used before. Can anyone please help me to get this started ?

Thanks
Alfred


Alfred,

If I'm reading this right you are using Flex Builder 3 and trying to use the ESRI API version 2.2?

I think you'll fine you need to use the ESRI API version 1.3 for Flex Builder 3.

Requirements for version 2.2 are here: http://help.arcgis.com/en/webapi/flex/index.html

Cheers

Ian
0 Kudos
alfredman
New Contributor
Was going to say I tried downloading the source code of FlexViewer and got myself running into 29 erros upon importing to Flex Builder 3.0.

Thanks all of you. Thanks Ian for the quick respond and prevent me hitting the dead end furthermore. I will try the 1.3 version now.

Alfred
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alfred,

   To add to Ian's post, you can use the 2.2 API and VIewer in Flex Builder 3 but you will have to download and install the Flex 4 SDK into your Flex Builder IDE.
0 Kudos
alfredman
New Contributor
Thanks. I tried the API 1.3 and the swf can be added to my project now. However, all the sample given are written in Flex 4 format with those <s:Application> <fx:Script> etc tag.

I guess I have to try get the Flex SDK4 installed as well.

Thanks for help.

Alfred
0 Kudos
alfredman
New Contributor
http://forums.adobe.com/thread/723844?tstart=0

It seems that it is not allowed to use SDK4 on flex builder 3.0. I guess I have to work around and try things out without the sample script working properly attached with ArcGIS API 1.3...
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
alfred,

   You can download the 4.0 SDK and use it in Flex Builder 3. I have this working on my system and know that it is possible.
0 Kudos