From Flash Builder To FDT

From FDT Documentation

(Difference between revisions)
Jump to: navigation, search
(Wait...? How Do I Launch My Project?)
Line 75: Line 75:
Check out more in the [[Launch Configuration Tutorial]].

Revision as of 21:56, 4 October 2010


If the differences between FDT and Flash Builder were boiled down into one word, the word would be Flexibility. Beside having powerful code editing features that are missing with Flash Builder, FDT is flexible with your project management whereas Flash Builder is going to harness you with constraints. While, at first, these concepts will seem foreign to the long term Flash Builder user - as you master them you'll quickly understand the power and flexibility they provide.


Project Structure

Where Did All My Projects Go? or Everything is a Flash Project!

014 001.png

Perhaps the most significant difference between FDT and Flash Builder has to do with the Project Wizard.

When creating a new project, Flash Builder has several different Project Wizards:

  • Flex Project
  • Flex Library Project
  • Flash Professional Project
  • ActionScript Project

After choosing one, Flash Builder provides you with project creation process depending on the type of project chosen. When finished, Flash Builder will have setup a directory structure and creates files whose initial structure cannot be changed. A good example of this is the existence of the libs folder between a Flex Project and the omission of a libs folder for an ActionScript Project.

Conversely, FDT takes a different approach. Everything, after all, is a Flash Project - the differences lie in what SDK you're going to be using and you're output. With this in mind, FDT instead allows developers to define their own Project Types via the New Flash Project Wizard.

014 002.png

FDT ships with a few different project templates, but developers can create their own as they please. You're able to preset your:

  • SDK (what is included and what isn't).
  • Your directory structure.
  • You're source folder(s)
  • Library dependencies
  • Files
  • and much more....

If you're new to FDT, haven't yet had the chance to explore project templates and need to decide what type of project to choose - think about the type of SDK you're going to need for your output. If you need to use any Flex components use a template that is Flex based, otherwise, stick with AS3 projects.

Where's My Source Folder? Anywhere Your Want!

014 003.png
Perhaps one of the most obvious difference between Flash Builder and FDT has to do with how easily it is to have multiple source folders.
014 004.png

There's really no limit to how many source folders you can have. When compiling and edting, FDT will look to all of your 'source folders' for code. These folders can be easily turned off and on - simply right click on the folder and choose Source Folder>Remove From Class Path / Add to Class Path.

What the SWC?

Similar to how easily it is to add and remove source folders, adding and removing .SWCs is also simple. With Flash Builder, when a developer creates a Flex project, she has a libs folder where she can drop .SWCs into and they will be automatically added to the source path for the project. This is convenient; however, when working with an ActionScript Project you'll need to manually create a libs folder and then navigate to your project settings to add that folder to your project.

With FDT the process of adding .SWCs to your project is much more straight forward. If your .SWC isn't already added to your class path when your project is created, you can simply add it to your project as if you were adding and removing a source folder. Simply right click on your .SWC and choose Source Folder>Add to Classpath / Remove from Classpath.

014 005.png

Compiling and Running

Wait...? How Do I Launch My Project?

Flash Builder and FDT have different philosophies to compiling and launching your projects. What it boils down to is the fact that FDT doesn't force any specific structure onto it's developers. With FDT your Main class can be anything or anywhere in your project. When using Flash Builder, developers place their executable, Main, classes within the (default package). This is how Flash Builder lists your projects within the Run or Debug launchers.

FDT, on the other hand, wants you to tell it what to do. You define your Main classes, your outputs and your pre and post actions, as well as many other options that are not easily achievable with Flash Builder. This is done by creating a Launch Configuration. As such, this provides tremendous flexibility. You can have multiple launch configurations for one application as well as control many other actions that are not easily achievable with Flash Builder.

Flash Builder says: 'When you put a Main classes in this specific folder, then I can launch it'.

FDT says: 'Tell me what how you'd like your project structured and how you want me to do it'.

For more information, check out the Launch Configuration Tutorial.

Where's my html-template and other support files?

FDT provides developers with a base and powerful tools to build upon. As such, FDT leaves it up to the developers to decide for themselves how to embed, launch and test their applications. While Flash Builder's HTML wrapper is sufficient for some developers, others will find that it gets in the way. They then need to go back and undo Flash Builder's default project settings to get their project where they want it to be.

This is where FDT's project templates come in. If a developer wants to test their applications embedded within a PHP application - create a template for it, if a developer prefers to use swfin instead of swfobject = create a template for it, if developers wants to use Flash Builder's HTML-wrapper - create a template for it.

How Do I Export A Release Build?

The Flex compiler gives developers an option to include debugging code in their applications. This is of course handy for testing and developing, but its not necessary when deploying your applications. This is why Flash Builder has the option to export a releas build.

For time being, FDT has no specific Export Release Build action. The best thing to do to is to add a few compiler options such as:


Check out more in the Launch Configuration Tutorial.

Get FDT5