Posts tagged "Flash Builder"

GlobalOptimizer NullPointerException when packaging AIR applications for iOS

In some circumstances, attempting to package an AIR application for Apple iOS platform using  ipa-ad-hoc and ipa-app-store targets can result in a NullPointerException. A workaround for this problem may be to use a debug version of your SWF in the package.

When using the Project->Export Release Build… menu item to create a package, click Next on the first screen. You will notice that it will build the release SWF as it switches from this screen to the Package Settings screen.

Before you click Finish on the Package Settings screen of the Export Release Build dialog, go to your project within Finder (or File Explorer on Windows). With the Export Release Build dialog open you will not be able to do the next step within Flash Builder and you will have to do it within Finder. Copy the ePresenter.swf file found in the bin-debug directory and replace the same file in the bin-release-temp directory with the one from the bin-debug.

Once you copied the debug version into the bin-release-temp folder, you can click Finish. When I tested this, it was able to create the IPA.

Changing default braces in Flash Builder

Those little curly punctuation marks can cause controversy. Some folks are entirely end-of-the-line adherents, others are stridently next-liners. The templates and code completion within Flash Builder follow the next-line model. For some end-of-line folks this can grate like fingernails on a chalkboard.

The default braces are changed within Flash Builder at two places, one for file templates and the other for code block templates. To change the file templates open the preferences for Flash Builder. Go to the Flash Builder->File Templates section and there is a list of all the file templates used in Flash Builder. To edit the code block templates, go to Flash Builder->Editor->Code Templates section.