Flash Builder File Templates

Don’t like the exact way that files are created in Flash Builder? CHANGE IT!

Something new in Flash Builder is the ability to edit the template files used to create you files. This will help customize your development workflow to your personalized style.

Making this change is easy. The first thing I did was get rid of minWidth and minHeight on the application.

Here is my annoyance each time I start an application..

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
</s:Application>

Go to Preferences > Flash Builder > Templates to find them.

Select the template file you want to edit.

Edit the file…

And now my template is updated to create an application with no minHeight and no minWidth.

And now my applications start up without a minWidth and minHeight.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
</s:Application>
Share

Comments (3)

andyMarch 31st, 2010 at 5:14 pm

cooool

Karl FreemanApril 21st, 2010 at 8:02 am

Just a quick one to mention is that your code examples are the wrong way round, feel free to delete this comment once you’ve swapped them round :P

Jonathan CamposApril 22nd, 2010 at 9:21 pm

thanks, sorry for the mistake!

Leave a comment

Your comment