Select to view content in your preferred language

FB 4.5 Wants to import Flex API as mobile project only:(

656
4
02-16-2012 06:33 AM
EmilyLaMunyon
Deactivated User
Hello,

I have Flash Builder 4.5 and am trying to import the Flex 2.5 API. However, the project always loads as a mobile workspace and I need a web application. I have tried everything I can think of to reset the workspace with no luck. Does anyone have any advice on how to remedy this?

Thanks!
Tags (2)
0 Kudos
4 Replies
RobertMyers
Deactivated User
Could the project you're importing actually be configured as an Adobe Air Project in Flash Builder 4.0?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   This straight from the readme.txt in the ArcGIS_Flex folder from the API download:

===============
Getting Started
===============
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.5-2011-11-30.swc")

4. In Adobe Flash Builder, right-click on any of the sample mxml applications and click "Set as Default Application".

5. In Adobe Flash Builder, right-click on any of the sample mxml applications and click "Run Application".



Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
EmilyLaMunyon
Deactivated User
Thanks so much Robert!

That solved the problem of the mobile workspace. I should have know better, it has just been a while since I had to create a new project.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   Don't forget the most important step...

Don't forget to click the Mark as answer check (the leftmost step in the image) as shown below:
0 Kudos