Flash Development with Flex Builder

Dear Lazyweb, I’ve started doing Flash and Flex development. For me the Flex Builder IDE is significantly better than the Flash CS4 IDE, but when you build a SWF in Flex Builder it includes all of the MX widgetry. That’s too heavyweight for building simple Flash applets. Is it possible to get around that so I can use Flex Builder for my non-visual Flash development without bringing in MX?

Update: David Zuckerman a Flex Builder Developer dropped in to provide this invaluable advice:

Hey Ian, have you tried an ActionScript project in Flex Builder? It sheds most of the Flex weight, but you’ll still need to modify your project settings. In your setttings, go to the “ActionScript Build Path” tab, and open up the Flex SDK that’s listed there. Remove everything but playerglobal.swc (you can keep utilities.swc if you want). That should give you just the language definition, and none of Flex

I haven’t moved the project over to this fully but it looks like it works perfectly. Thanks David!

5 replies on “Flash Development with Flex Builder”

  1. Hey Ian, have you tried an ActionScript project in Flex Builder? It sheds most of the Flex weight, but you’ll still need to modify your project settings. In your setttings, go to the “ActionScript Build Path” tab, and open up the Flex SDK that’s listed there. Remove everything but playerglobal.swc (you can keep utilities.swc if you want). That should give you just the language definition, and none of Flex. Have fun!

  2. Ian, you are correct. I just read in the Flex 3 Cookbook that you can specify the Flex framework be derived from a Runtime Shared Library, which can be cached client-side and shared across domains. So if you wanted to use some of the framework stuff without it impacting your app’s size you could go that route; I think you could pick and choose per David’s instructions, too, and specify each .swc as a RSL.

  3. another nice trick is the “Use default (runtime shared library)” option for each .swc’s Link Type (in the Library Path tab in Flex Build Path in a project’s properties dialog). this sets the link type for the .swc to match the link type for the playerglobal.swc, so changing “Framework linkage” at the top of the dialog can affect all your .swcs.

Comments are closed.