FlashDevelop Plugin

Haxe FD is een Plugin voor de FlashDevelop IDE.

BELANGRIJK : haxe FD werkt alleen met FlashDevelop 2.x.x series.

Om haxeFD te instaleren, dien je eerst Haxe te downloaden en instaleren, daarna gebruik je het volgende commando :

  haxelib install haxefd

Dit zal haxefd instaleren in de haxelib repository. Om de instalatie af te maken dien je naar de repository folder te gaan en het instalatie script uit te voeren :

  haxelib run haxefd [path-naar-flashdevelop]

Dit installeert Haxe FD voor FlashDevelop. Dit commando heeft een optionele directory argument welke staat voor je FlashDevelop instalatie folder (standaard is dat "c:\program files\flashdevelop").

haxeFD gebruiken

Eenmaal geïnstalleerd, zal je wat modificaties zien in je FlashDevelop Menu's.

Een nieuw Haxe Project Menu :

haxefd_menu.png

En nieuwe panels in het View Menu :

haxefd_view.png

Nieuw Project maken

Maak een nieuw Project, dit genereerd een enkele .hxp bestand welke de project eigenschappen bewaard. Gebruik het View FlashDevelop menu om het Haxe Project Panel te tonen :

haxefd_project.png

De project manager staat je toe 1 of meerdere Target(s) op te geven voor je project. Op deze manier kan je verschillende bestanden in één keer compileren. Rechtermuis klik op de Target lijst en selecteer Add Target. Geef het een naam en identificeer het.

By clicking on it, it will display its Properties. Enter an output file and select your Platform. If you are compiling for Flash, you can select an assets SWF Library.

Select a Class that will be the one compiled by Haxe.

If this class have a main function that you want to call when the application starts, check the corresponding property.

You can add more classes and additional parameters in the Extra Parameters list (one per line).

Adding Files

Now, let's open the Haxe Sources Panel by using the View menu :

haxefd_sources.png

You can add there your files and create virtual folders to sort them. The directory structure of your project does not need to match the one on your hard drive, so you can organize your files the way you prefer.

Please note that even if you included a file in the Haxe Sources, if it's not used by your Project Target, it will not be compiled.

Compiling and Testing

Hit the F8 key to compile. If you did setup your Project correctly, it should run the Haxe compiler and output the eventual errors in the Output or Results panel. Please check those two. The Output panel should display Done(0) in blue after executing Haxe successfully. The Result panel will capture Haxe syntax and type errors so you can click on it to access directly to the file/line it occurred.

When compiling a haxeFD project, a .hxml file will get generated with the options you have been selecting for your targets. It will enable other people that don't use haxeFD to compile your project directly.

You can now start your project with F5. By default, this will execute your Output file for the default Target. If you want to execute another file, for example open an HTML file or browse a given location, you can change the Test Cmd value in your Project Target.

Completion and CodeTips

Completion is supported for both fields and packages accesses, as the screenshots below shows :

haxefd_codetips.png

haxefd_codetips2.png

Since the compiler is used for completion implementation, the class you are currently editing must be compiled as part of your project, and some syntax errors might prevent you to see completion tips (in that case the syntax error is displayed instead).

Contributing haxeFD

If you want to contribute haxeFD, please visit the Project Page. You'll be able to checkout the sources and start playing with it.

version #1278, modified 2008-05-07 11:46:22 by Folkert