Here are some examples of code on haXe with the corresponding swf file.
- Example_1.hx: Trace, enum, variables (integer, boolean, void, string, float, dynamic), null, array iterable, for loop, if/else.
- Example_2.hx: For loop, while loop, do while loop, break, continue, array.reverse.
- Example_3.hx: Private static function, recursive fibonacci, dynamic fibonacci.
- Example_4.hx: Heapsort.
- Example_5.hx: Binary search (using heapsort for sorting)
- Example_6.hx: Quicksort, quicksort using random partition, quicksort using Hoarse partition, quicksort using random partition together with hoarse partition
- Example_7.hx: Snapsack, Multi-dimensional arrays
- Example_8.hx: Class, extends, flash.display.MovieClip, flash.display.MovieClip.graphics, haxe.Timer.delay, flash.Lib.current.addChild
- Example_9.hx: TextField, TextFormat, TextFormatAlign
- Example_10.hx: feffects, feffects.Tween, flash.external.ExternalInterface