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