Haxe/AS3: logging, invoking commands, etc