Setting up FlexBuilder 3 to work with Flash CS4
Setting up your work environment, whether it be your Photoshop workspace or your favorite coding applications panels, can be a very individual thing. Some people like it this way some like it that way, etc.. So I wont be spending any time here talking about visual layout but rather setting up FlexBuilder ( recently renamed FlashBuilder) to provide optimum compiler performance, connecting to the Flash CS4 code-base, a few of my favorite plug-ins, etc.. Hopefully this will help save someone else the headaches I have gone through trying to get everything just right so I can just work.
1. Setting up FlexBuilder 3 to work with Flash CS4
First lets set-up FlexBuilder to import the Flash CS4 libraries. You'll need to modify the paths to follow your specific paths (e.g. change the username)
- Click Images to see full size -
FIRST:
Window -> Preferences -> General -> Workspace -> Linked Resources
Path is : C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\projects\Flash\src\
SECOND:
Project -> Properties -> ActionScript Build Path -> Source Path Tab
THIRD:
Project -> Properties -> ActionScript Build Path -> Library Path Tab
2. Speeding up FlexBuilder Compile Times
- Add additional Compiler arguments to your project: Project->Properties->Flex Compiler->Additional Compiler Arguments incremental=true -keep=true. That only updates and compile files and with changes and does not compile all the stuff again. Great results on medium/big projects. For the first time it takes more time to compile (due to cache file generation), but the next compiles are really fast.-keep=true or -keep-generated-actionscript=true can be other good tip, but only for check generated action script files (created under "generated" folder, good for debugging and code-check) but this does not tune up the compiling time.
- Close extra projects
- Turn off "Copy non-embedded files to source folder"
- Turn off "Build Automatically"
3. Lets not forget about Plug-ins
There are quite a bit of Eclipse plug-ins in existence. Not all will help you with ActionScript coding but there are quite a few that will. I use the Snippets panel found in the CFEclipse plug-in, the ToDo panel, and the Status Memory Monitor Plugin.
- Check out the 3 part series by Lee Brimelow on adding enhancements to FB 3 (especially the Snippets Panel). Part 1, 2, 3
- Here's another great post - Pimp my ‘clipse - a list of must-have Eclipse plug-ins for Flex/Flash Development
- The the Status Memory Monitor Plugin is really cool. It allows you to for Eclipse/FB to run its garbage Collection, freeing up memory and resources. Great Productivity enhancement.
Anyway those are just a few ways you can set up FlexBuilder to allow you to be more productive. Please post your own tips if you have any.
-Dave




July 21st, 2009 at 8:22 pm
[...] Setting up your work environment, whether it be your Photoshop workspace or your favorite coding applications panels, can be a very individual thing. Some people like it this way some like it that way, etc.. Read the rest here: Setting up FlexBuilder 3 to work with Flash CS4 [...]
July 23rd, 2009 at 12:08 am
[...] bundled with Papervision3D , another flash library for manipulating objects in 3 dimensions. Setting up FlexBuilder 3 to work with Flash CS4 – cruciallimit.com 07/21/2009 Setting up your work environment, whether it be your Photoshop [...]
August 11th, 2009 at 1:05 am
Great blog.. even though it didnt solve my problem. Here it goes. Scenario.. Flex 3(SDK 3.0) and Flash CS4 with the flex component kit installed. Life should be easy right…. Build Up… I convert said artwork to a movieclip. Select commands, prepare said MC for flex component, right click on the flex component icon in library.. export swc.. cool .. moving right along.. Jump over to fle
to take advantage of the better coding environment) … add said swc to my library path for whatever project. … Now I can finally tell you what has me on the verge of a nervous breakdown. As soon as I add the swc compiled by flex I get a warning stating that said swc cant load .. something about AIR classes and four errors declaring an incorrect interface to some methods in some class.. check java script error code .. and this is where I having been standing for almost 48 hours. Please send help!!