inspired by this excellent article .. https://medium.com/@premith/haxe-lime-openfl-ec9c2784aaa8