Matthew Wallace

Software Developer
 

Sneak peek at new Flash Builder features

Sneak peek at some new features coming in Flash Builder, but if you are using FDT you already have these features. Just say'n, but it's cool that they are trying to make Flash Builder better.

 

Turn off Build Automatically in Flash Builder & FDT... the error checking is awesome

If you use Flash Builder all the time and you like that it tells you when you have an error in your code "after" you save changes then you have also noticed that when projects get pretty large, auto building all the time becomes a pain. Auto build basically compiles your project ever time you save a file.

In FDT Auto Build is turned on by default. I kind of think that this should be turned off by default. Why? Well, because FDT check for errors in your code as you are typing. This is a feature that I love. The beats having to wait for your project to build only to find out you have an error. Another feature that this allows you to take advantage of that you get with FDT is quick fix. Quick fix need a completely separate post. It does a lot of cool stuff like creates functions, variables and import statements when you don't have them in your code, to name a few.

You can turn off Auto Build in both Flash Builder and FDT by going to  Project > Build Automatically and making sure that it is NOT checked. If you are in Flash Builder you will not get any errors until you debug or run your project or you can also hit command or control + B to build the project manually without running debugger or running the project. 

The advantage of this in FDT is that you still get error checking even with Build Automatically turned off. 

 

Fix to use Google Chrome for debugging in Flash Builder / FDT

Google Chrome comes withe Flash Player installed and enabled. For most users this is great. For developers that want to use the debugger it is not. If you install the debugger on your system it does not replace or over ride the player in Chrome. This is due to the way Chrome manages plugins.

The fix used to be to go into your eclipse settings and choose to use Firefox or Safari for debugging. Like many developers I have grown to really like Chrome and would like to use it and not have to open another browser just to test my projects.

The solution is to do the following. In Chrome you need to put the following URL in chrome://plugins/. You will see the list of plugins your browser is using. Find the Shockwave Flash Plugin and click disable. After that close all browsers including Chrome. Run the installer for the latest Flash Player Debugger plugin. Launch Chrome and navigate to a page that has Flash to make sure the install went as planned. After that open Flash Builder / FDT and change your browser settings and you should be good to go.

Media_httpgrabby5s0n_pcard

 

How to change FDT package explorer to look like Flash Builder's

I started using FDT 4 today. I was asked to do some speaking on FDT so I figured I may need to get a little more familiar with it. Long story short. It is way easier to set up with existing Flex projects that you may have been coding with eclipse / Flash Builder. I was up and running pretty quick.

One thing that was bugging me was the package explorer. The tree did not nest children of packages like in Flash Builder. I thought that this was a setting that the powerflasher guys backed in but come to find out it is a simple setting in the package explorer that you can change. Rather than typing you instructions I make a quick video to show you how to change the setting.

 

Improve your compile time in Flash Builder / Eclipse on OS X

With out getting into a long explanation. If you feel like compiling your Flex or Actionscript project on OSX takes forever do the following and I am pretty sure you will notice an improvement. This is most noticeable on large projects with lots of files. 

Start System Preferences, select the Spotlight icon, then the Privacy tab, then click the Add button (“+”) and find your workspace directory that your projects are in the dialog that appears, or you could just open finder and drag the directory into the window.