HaXe Library Tutorials
From dis-Emi-A
To help get you started with the library, several tutorials have been developed. These are included with the library -- refer to Using the library or download directly here [1].
Should you require a further tutorial, or assistance, don't hesitate to ask.
Listing
This is simply a listing of the tutorials and a short description. The source files for these examples (all located under the app-tutorial directory) are well documented to explain everything that is being done.
Click the name to see the resulting Flash (though most of them, without the technical comments, are really not so interesting ;)
- Layout1
- This class demonstrates a basic stage layout, showing the primitives of automatic sizing.
- Layout2
- This layout demonstrates the use of a Widget as a child, showing the propogation of sizing.
- LinearLayout
- This demonstrates how to create an automatic vertical layout of several items.
- ModalPopupMenu
- This class introduces the popup menu and the related Action items
- TilePattern
- A very simple use of the haXe Dynamic Textures
- FXDemo
- A quick demo of some of the haXe FX Builder
Compiling
Refer to haXe Using the Library for complete instructions, but most of these tutorials should need no more than to add app-tutorial and lib to the path.
For example, you just downloaded the latest package[2], and you wish to build "LinearLayout".
tar xzf dhlib.tgz cd dhlib haxe -cp app-tutorial -cp lib -swf LinearLayout.swf -swf-version 9 -main tutorial.LinearLayout
And then just open LinearLayout.swf in your browser or Flash player.
Obviously, the expansion step can be skipped for other tutorials.
