Installing the latest nightly Flex 3 SDK build into Flex Builder 3

Continuing my post from the the other day, if you’re trying out Flex 3 SDK and Flex Builder 3 (codename: Moxie), you may want to consider downloading and installing a newer nightly build of the SDK so you can take advantage of all the bug fixes that happen on a daily basis. The first step is to grab the latest version of the SDK, which can be found over on the Adobe Labs site at http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html. All you need to do is read the terms of use and check the check box to enable the downloads. That’s it, no logging in, or registering, just one click and go!

Currently you have a few different options of things to download:

You can download the beta 1 build of the Flex 3 SDK (67 MB ZIP, released June 11, 2007), which includes support for building Adobe AIR (codename: Apollo) applications (for more information, check out the Adobe Integrated Runtime (AIR) page on Adobe Labs). According to the “Flex 3 Planning” page on the official Adobe Flex Wiki (see http://flexwiki.adobe.com/confluence/display/ADOBE/Flex+3+Planning), You can expect to see Beta 2 “Feature Complete” some time in late July/early August, with Flex 3 shipping in Q4, 2007 (yay!)

August 18, 2007: Updated the dates below to reflect the latest schedule.

Flex 3 milestone schedule:

Date Target
April 9, 2007 M1 Release (Alpha)
June 11, 2007 M2 Release (Beta 1)
October 2007 (was: late July/early August) M3 Release (Beta 2) – Feature Complete
Late 2007 (was: late August/early September) M4 – Release Candidate
Early 2008 (was: Q4 2007) Final Release

OK, back on topic… After reading and agreeing to the terms of use, click the check box on the Flex 3 SDK page on Labs (http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html) to download a copy of the Flex SDK. Here you have a few different choices. You can download any/all of the following:

  • “Flex 3 SDK Beta 1” (which includes support for Adobe AIR).
  • “Flex 3 Beta 1 Compiler Modules”. These include compiler ISAPI filters for Windows, as well as compiler modules for Apache on Windows, Macintosh, and Linux.
  • “Recent Nightly Builds of the Flex 3 SDK” (Note: “The nightly builds of the Flex 3 SDK do not include support for Adobe AIR. If you require Adobe AIR support you should use the beta 1 version of the Flex 3 SDK.”).

With that out of the way, I’ll assume you already have Flex Builder 3 installed, so grab the most recent copy of the nightly build and download the ZIP file to your desktop (or somewhere easily accessible). If you’re so inclined, you can read the changelist to see which bugs have been fixed in this release. Just click on the “View” link in the Changes column and it should pop up a new browser window.

With the download complete, locate the flex_sdk_3.zip file, and expand it. You should see about 8 directories, as well as an XML file, a license.htm file and readme.htm. According to the readme.htm file (which may not be updated for Flex 3 yet), the Flex SDK contains the following directories:

  • asdoc – Contains ASDoc related files. ASDoc is a command-line tool that is you can use to create HTML documentation from the
    classes in your Flex application.
  • bin -Contains command-line tools such as mxmlc, compc, asdoc and fdb. You use these tools to compile, debug and document Flex applications and components.
    The bin/jvm.config file contains Java VM settings.
  • frameworks – Contains the framework.swc file, frameworks.swc source code, and other helper files that you use to compile Flex applications.
    The frameworks/flex-config.xml file includes the default compiler options.
  • lib – Contains JAR files used by the compilers.
  • runtimes – Contains debugger versions of Adobe® Flash® Player 9 for Linux, Macintosh, and Windows.
  • samples – Contains source code for sample applications.
  • templates – Contains HTML templates for Flash Player detection and history management.

With the ZIP file expanded on your harddrive, create a new folder on your harddrive. I chose “C:\dev\FlexSDK” since it is easy to find and a minimal number of letters to type. Copy each of the files and folders you just unzipped into aforementioned folder. So now you should have a folder like “C:\dev\FlexSDK\runtimes\” (where you can find the various Adobe Flash Players).

Next, start up your copy of the Flex Builder 3 beta. If you’ve made it this far and still don’t have that installed, download it from this handy URL: http://labs.adobe.com/technologies/flex/flexbuilder3/ (In a later post I’ll walk  through installing the standalone version of Flex Builder now, so sit tight if you’re lost).

After Flex Builder 3 has launched, I’ve found two painless ways to add our newly downloaded SDK:

Method 1) From the main menu, select Window > Preferences to open the Preferences dialog box. Expand the “Flex” tree, and select the “Installed Flex SDKs” option. This brings up a data grid of all currently installed Flex SDKs and their locations. It also allows you to check off which SDK you want to set as the default SDK by clicking the check box on the left of the SDK name. To add a new SDK, click the “Add” button to launch the “Add Flex SDK” dialog box. This dialog box allows you to browse for a new SDK directory, as well as give it a name. In my case, I’m going to set the Flex SDK directory to “C:\dev\FlexSDK” and give it a name of “Flex SDK (Latest)” and click OK. It’s important to note that you’re adding an additional SDK here. You aren’t overwriting anything, or replacing anything. You still have the option to compile your MXML files with the previous versions of the SDKs, such as Flex 2.0.1 Hotfix 2, or Flex Moxie M2, both of which came installed with Flex Builder 3 Beta 1. After clicking OK, you return to the Installed Flex SDKs page. From here, click the check box next to “Flex SDK (Latest)”, or whatever name you used, to set it as the default SDK. This allows you to compile against the latest version of the SDK by default, yet still have the ability to compile against Flex 2.0.1 or Flex 3 SDK Beta 1 within a few clicks. You could also download a nightly build and extract it to a nested folder within your C:\dev\FlexSDK folder. For example, I could have created C:\dev\FlexSDK\build_177055 and then add each nightly build of the SDK to Flex Builder. While this may be overkill for most, it allows you to easily revert back to previous versions of the SDK if something was working in a previous build but not in newer builds.

Method 2) Right-click a project folder in Flex Builder’s Navigator tab and select Properties to open the Properties for <Project Name> dialog box. From here, click the Flex Compiler option on the left to see the various Flex SDKs currently configured by Flex Builder. Here, you can set the SDK that the project will compile against, or override the default SDK with a specific one (such as Flex 2.0.1 Hotfix 2, or any other installed SDK). To add a new Flex SDK from this screen, click the “Configure Flex SDKs…” link on the right to be taken back to the Preferences dialog discussed above.

 That’s it. Downloading and installing new SDKs into Flex Builder is a pretty simple and straight forward process.

Good luck, and happy Flexing!

I should also mention that you can grab “Flex 2.0.1 SDK with HotFix 2” and recent nightly builds of the Flex 2.0.1 SDK from http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html (follow the same instructions as above to install the Flex 2.0.1 SDK into Flex Builder 3).

17 thoughts on “Installing the latest nightly Flex 3 SDK build into Flex Builder 3

  1. Hi,

    Very helpful and practical. Thanks for sharing this article.

    Is there any hot fix for Flex builder? I am currently facing a bug in Flex builder installed as plug-in over eclipse WTP 2.0. I am able to see a bug already filed and resolved in Adobe bug server. But I am not sure where the fixed version is available. If you have any information on this please let me know.

    Thanks
    Varada

  2. Varada,

    As far as I know, the version of Flex Builder posted on Adobe Labs is the most recent version. The good news is that according to the schedule on the Flex Wiki (link), there should be a new version out sometime in October 2007.

    Peter

  3. Hey,

    I tried the latest 3 builds so far, but it seems missing files orso? the advanced datagrid control isn’t available anymore.
    Do i need to copy some files in order to have the advdatagrid ?

    -Sjoerd

  4. Sjoerd,

    I don’t believe that the nightly builds ship with the datavisualization.swc file. I tried a very simple test with the SDK build that came with Flex Builder 3 Beta 2 and the AdvancedDataGrid worked fine, so I think you’ll need to switch to the “Flex 3 M3 (Beta 2)” for any projects where you want to use AdvancedDataGrid or Charts.

    Or, if you like to play dangerous, you could try copying the datavisualization.swc from the Flex Builder 3 SDKs folder (C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\) and try pasting it into the similar folder in your nightly build. I don’t know if that would work, or how reliable it would be though, so use at your own risk.

    Peter

  5. We are seeing quite a few important bugs against the AdvancedDataGrid marked as fixed and would like to take advantage of them in our Flex 3 Beta 2 apps. But so far the datavisualization.swc file hasn’t been included in any of the nightly builds.

    Would it be possible to get a one-off updated build of the datavisualization.swc?

    I do own a Flex 2 and Charting license.

    Dan

  6. Dan,

    The best advice I can offer would be to post on the Adobe Forums (FORUMS : Flex Builder 3) and plead your case for more frequent drops of the datavisualization.swc file. There wouldn’t be a way for me to distribute newer versions of the SWC externally (and remain employed). :)

    Peter

    update: Or I guess you could try joining this thread, but it seems like it it isn’t possible to distribute the SWC easily right now.

  7. Hey Peter and others,

    Thanks for your reply obvisiously my last reply wasnt added. I managed to copy the datavisualization.swc into the nightly builds but theres no win for the advDatagrid.

    Only thing left to do is to post your requests at the Adobe Forums. And i would referer to the thread Peter mentioned above.

    Best regards,

    Sjoerd

  8. Doru,

    Although I haven’t tried, I don’t believe it is possible. I believe the ability to run multiple versions of the Flex SDK was added in Flex Builder 3.

    However, you can have Flex Builder 2 and Flex Builder 3 installed at the same time (at least with the standalone installations, not sure about the Eclipse plugin version). Although, after a project has been imported into Flex Builder 3, I’m not sure if you can still open it in Flex Builder 2 (file format changes, etc).

    Also note that you can install the Flex Builder 3 beta from Adobe Labs (see http://labs.adobe.com/technologies/flex/flexbuilder3/) and use your Flex Builder 2 serial number to extend the 60 day trial.

    Peter

  9. Peter, thank you for the fast response !

    I was thinking just to add or replace swc libraries on the “Library path” in Flex Builder 2. I thought someone else here already tried this but, as soon as I’ll have both builders and sdks on my machine I’ll try it myself and leave the result here (just for the record :) ).

    Thanks again !

    Doru.

  10. disculpa que te moleste pero necesito encontrar este objeto WebScriptService que extiende de httservice encontre que se encuentra en el sdk por eso vi este articulo pero no lo puedo ver si me puedes ayudar te lo agradeceria mucho.

  11. I’m new to flex, but I’m relatively sure I am capable of reading and following instructions however I can’t seem to figure out how to add my new SDK as I do not see an “Add” button anywhere in Window>Preferences>Flex>Install Flex SDK’s. The only buttons I see are Reset, Apply, OK, and Cancel. I can select between the two versions that are listed but that’s about it. I have been unsuccessful in my attempts to Google up any similar results either. Any thoughts?

    Thanks for any help and for this fantastic blog!

  12. Peter

    Thanks for the image it sort of explains a lot especially if you look at the image I’m trying to link below. Not sure what I can do at this point besides laugh and be thankful that I’m not an idiot.

  13. Hi Peter,

    I have been using Flex 3.1 so far, and just got the 3.3 sdk. However, when I select to use the 3.3, I get the warning message “Flex warning: because you have changed the options for the HTML wrapper or SDK version, all files in the “html-template” folder of your project will be overwritten and/or deleted”, and now when I run my project, it tells me it cannot find the .html. How do I create the .html again? Thanks!

  14. jon,

    Try cleaning the project. If that doesn’t work, try creating a new Flex project and copy the files from the new /html-template/ folder into your old project’s /html-template/ folder.

    I’ve had this happen to me a few times, but thankfully it hasn’t been very frequent.

    Peter

Comments are closed.