At Flex 360, someone asked me where they could find out how to use our Flex 4 SDKs with Flex Builder 3 because Builder 4
isn’t available to the public. This is pretty easy thanks to the multiple SDK support in Builder. So, as promised to a customer,
here are the instructions for using Flex Builder 3 with the Flex 4 Gumbo SDK.
1) Download the Gumbo SDK – Go to opensource.adobe.com.
2) Unzip the flex_sdk_4.zip to some location on your hard drive. For the purposes of this tutorial, we’ll download it to
3) Open up Flex Builder 3 and create a new Flex project.
4) Right-click on the project and select the ‘Properties’ option. This should open the Properties panel.
5) From the left hand menu, select ‘Flex Compiler’ to view the Flex Compiler properties
6) In the Flex Compiler properties view, click on the link ‘Configure Flex SDKs…’
7) You should be in the ‘Installed Flex SDKs’ view. click on the button ‘Add’.
8) In the resulting dialog, browse to the location that you installed the SDK (from step #2). Then, click ‘OK’.
The Flex 4 Gumbo SDK should now be added to the list of SDKs available for you to use for this project.
9) Press ‘OK’ in the “Installed Flex SDKs” dialog bringing you back to the main ‘Flex Compiler’ properties
10) In the ‘Flex Compiler’ dialog, select the radio button for ‘Use a specific SDK’ and
select the Flex 4 SDK that you added.
11) In the ‘Flex Compiler’ dialog, for ‘Require Flash Player version:’, enter 10.0.0. Flex 4
will only support Flash Player 10 content. If you compile to player 9, you will get an error.
12) Press ‘OK’ to close your dialog.
13) Note that when you create new mxml files for this project, the default tags will still be the tag
with the old namespace. You will need to manually change the mxml to use our new Spark Application tag and the new namespaces.
To get started with your first spark application. Feel free to use the sample below which is a simple spark application using the
3 new namespaces and some spark components (s:) along with halo components (mx:).
Note: If you try to compile a Flex 3 application with Flex 4, be aware of some of the migration issues that you’ll face that I mentioned
in a previous post.
Have fun playing with Spark!
Download Sample Spark App: firstSample4App.mxml