Trying to port leaflet to OpenFL (haxe) for cross compilation purposes, and of course educational purposes.