Posts Tagged compiler

Installing Flex 3.3 SDK + Data Visualization 3.3 SWC

I’ve seen a number of people ask how to install the Flex SDK 3.3 + Data Visualizations 3.3 SWC, so I thought I’d give some quick direcetions since it’s not on Adobe’s download site for the Flex 3.3 SDK.

  1. Download both the Flex 3.3 SDK and the Flex 3.3 Data Visualizations Components (”DVC”).
  2. Unzip them both somewhere on your local hard drive — I have all my SDKs for Flex in ~/dev/flex/sdks/<versionNumber>.
  3. Navigate into the DVC folder you just expanded and find the following files:
    • ../frameworks/libs/datavisualization.swc
    • ../frameworks/locale/en_US/datavisualization_rb.swc
    • ../frameworks/locale/ja_JP/datavisualization_rb.swc
    • ../frameworks/rsls/datavisualization_3.3.0.4852.swf
    • ../frameworks/rsls/datavisualization_3.3.0.4852.swz
    • ../libs/DMV-source.jar
  4. Now that you know where they are what you need from the DVC SDK, copy each one into the corresponding folders for the actual Flex 3.3 framework that you expanded earlier. So on my machine, I’d copy the datavisualization.swc from the DVC SDK to the Flex SDK like so:
    • ~/dev/flex/sdks/3.3/flex_sdk_3/frameworks/libs/datavisualization.swc
    • to

    • ~/dev/flex/sdks/datavisualization_sdk3.3/frameworks/libs/datavisualization.swc
  5. To use the new 3.3 SDK for a particular project, open up Flex Builder and click Project -> Properties -> Flex Compiler and click on the link on the right to “Configure Flex SDKs…”
    • Flex Compiler - SDK Config

      Flex Compiler -> SDK Config

  6. Browse to the Flex 3.3 SDK you just finished unpacking and adding the DVC files to and click OK.
  7. You can select this new SDK as your default here or just select this as the SDK for this project.
  8. Done.

Post to Twitter Tweet This Post

, ,

9 Comments

Dealing with @Embed Tags, Ant Builds, and Paths to Resources

There’s plenty of evidence on the blogs, Adobe bugs, and elsewhere, that there are issues dealing with the compiler locating resources at compile time.

You ask yourself, where do I put my assets, my images, my CSS files?

Using one notation, Flex Builder will find the resources but switching to Ant causes all hell to break loose.

Here’s a simple and fairly elegant way to deal with it.

There are two things you need to know to understand what’s going on.

  1. The forward slash(/) operator is used to indicate the root. But what is root? The Flex compiler considers the ‘main source folder’ to be the root. Hence when you say ‘/’, you are actually referring to the ‘Main source folder’ (which you can set in Project>Properties>Flex Build Path>Main source folder), which in most cases would be set as the ’src’ folder.
  2. How to traverse a path. Pretty simple. If you do something like [Embed(source="/../assets/images/icon.jpg")] and src is your main source folder, the compiler will start at src, go up one level, find the assets folder and voila!

Post to Twitter Tweet This Post

, , , , , ,

No Comments