If you happen to encounter this error message - "An Internal Build Error has occured. Click here for more information" in your flex builder, the solution you can think of trying are the following:
a) Your code might not have a case for the switch brackets.
switch (value)
{
// No case statements are written below but it has just the switch skeleton
// case '1':
// break;
// default:
// break;
}
b) Try to locate the problem. The problem is thrown by the Flex Compiler. Click on your flex builder menu option Help->About Eclipse SDK-> click on the button "Configuration Details"-> opens up a configuration dialog -> click on the "Error Log" button. You will see the error log on what is happening (why the flex compiler is failing, this is mostly because of Null pointer exception in the compiler code)
c) Change your SDK version. Window -> Preferences -> Flex -> Installed SDKs -> {try a newer version of sdk download it from opensource.adobe.com/flex (look for sdk). Sometimes there could be a problem with a specific version of the sdk and it might be fixed in later versions. So Trying out later versions would help.
d) Another alternate could be to switch the workspace (though not recommended). This could be the last resort for your options. Some times your workspace configuration files might get messed up and you might not have much time to even think further (instead of getting stuck as your compiler wont work). Change your workspace to a brand new one and create your project from scratch (SVN?)
e) Have ANT Script for your project which you can run through command line. So you will atleast know which package has a problem. So you can comment out that package / file for time being to resolve the issue to quickly and get going fast.