Select to view content in your preferred language

How to import a project in Flex Builder 3, run the .mxml file and create a .swf file?

1517
3
11-12-2010 10:50 AM
GeorgiannaStrode
Deactivated User
Does any one know how to import the project into Flex builder 3? I can not even import the project (either flexviewer folder or the specific widget folder) into it, so that makes me impossible to run a mxml file correctly. I believe that FB can only open a project that has a project type file, which ends up with .fxpProperties. So I tried to put the widget .mxml file in the src subfolder under a project that FB can open, and try to run it under that project, but there is always error that prevents it from running.

I also wonder how exactly does the Flex builder compile the .mxml to .swf file, since I've never seen it created a .swf file automatically just by running the .mxml file.

Looking forward to your help!
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
The old documentation (1.3) for Flex API talks about getting started with Flex Builder 3 and Flex API 1.3, but my first question would be why you are starting to use Flex Builder 3 instead of Flash Builder 4?

http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html#getting_started.htm ("old" doc)
0 Kudos
GeorgiannaStrode
Deactivated User
Hi bjorn, tks for the link. I am using Flex Builder 3 because my machine is only equipped with this. Its weird 'caz it seems that the project i'm working on was done using Flex API 2.1 with all those nice widgets on. And I have no idea how to do that using API 1.3 . I probably will still need to use Flex 2.1 instead. FB3 does not really create a .swf file out of running .mxml file. Is Flash Builder 4 capable of doing that?
0 Kudos
BjornSvensson
Esri Regular Contributor
The real issue isn't which IDE (FB3 or FB4) you are using, but which Adobe SDK you are compiling against.  You can use FB3 with Adobe SDK 4, as well as FB4 with Adobe SDK 3.

Both FB3 and FB4 will create SWF files from the MXML files.

So in short, it is possible to use Flex Viewer 2.1 with Flex Builder 3.  You just have to make sure you compile against Adobe SDK 4.  This setting is available at Project -> Properties -> Flex Compiler.

You might also want to consider upgrading your machine to FB4.
0 Kudos